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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl 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
sourceimpl From<InnerNotification> for Notification
impl From<InnerNotification> for Notification
sourcefn 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
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
impl StructuralPartialEq for Notification
Auto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more