Struct db_core::Notification
source · 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§
source§impl Clone for Notification
impl Clone for Notification
source§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 moresource§impl Debug for Notification
impl Debug for Notification
source§impl Default for Notification
impl Default for Notification
source§fn default() -> Notification
fn default() -> Notification
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Notification> for Notification
impl PartialEq<Notification> for Notification
source§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 ==
.