Struct db_sqlx_maria::dev::Notification
pub struct Notification {
pub name: Option<String>,
pub heading: Option<String>,
pub message: Option<String>,
pub received: Option<i64>,
pub id: Option<i32>,
}
Expand description
Represents notification
Fields§
§name: Option<String>
receiver name of the notification
heading: Option<String>
heading of the notification
message: Option<String>
message of the notification
received: Option<i64>
when notification was received
id: Option<i32>
db assigned ID of the notification
Trait Implementations§
§impl Clone for Notification
impl Clone for Notification
§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Notification
impl Debug for Notification
§impl Default for Notification
impl Default for Notification
§fn default() -> Notification
fn default() -> Notification
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Notification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Notification, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InnerNotification> for Notification
impl From<InnerNotification> for Notification
source§fn from(n: InnerNotification) -> Self
fn from(n: InnerNotification) -> Self
Converts to this type from the input type.
§impl PartialEq<Notification> for Notification
impl PartialEq<Notification> for Notification
§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for Notification
impl Serialize for Notification
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more