pub struct NotificationData {
pub id: Option<String>,
pub body: Option<String>,
pub link: Option<String>,
pub created_time: Option<f32>,
pub seen: Option<bool>,
}Fields§
§id: Option<String>The identifier of the notification
body: Option<String>The html body of the notifications
link: Option<String>The link of the notification
created_time: Option<f32>The creation time of the notification
seen: Option<bool>If the notification has been seen by the user
Implementations§
Source§impl NotificationData
impl NotificationData
pub fn new() -> NotificationData
Trait Implementations§
Source§impl Clone for NotificationData
impl Clone for NotificationData
Source§fn clone(&self) -> NotificationData
fn clone(&self) -> NotificationData
Returns a duplicate 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 NotificationData
impl Debug for NotificationData
Source§impl Default for NotificationData
impl Default for NotificationData
Source§fn default() -> NotificationData
fn default() -> NotificationData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationData
impl<'de> Deserialize<'de> for NotificationData
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 for NotificationData
impl PartialEq for NotificationData
Source§impl Serialize for NotificationData
impl Serialize for NotificationData
impl StructuralPartialEq for NotificationData
Auto Trait Implementations§
impl Freeze for NotificationData
impl RefUnwindSafe for NotificationData
impl Send for NotificationData
impl Sync for NotificationData
impl Unpin for NotificationData
impl UnwindSafe for NotificationData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more