Struct elefren::entities::notification::Notification [−][src]
pub struct Notification { pub id: String, pub notification_type: NotificationType, pub created_at: DateTime<Utc>, pub account: Account, pub status: Option<Status>, }
A struct containing info about a notification.
Fields
id: String
The notification ID.
notification_type: NotificationType
The type of notification.
created_at: DateTime<Utc>
The time the notification was created.
account: Account
The Account sending the notification to the user.
status: Option<Status>
The Status associated with the notification, if applicable.
Trait Implementations
impl Debug for Notification
[src]
impl Debug for Notification
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Notification
[src]
impl Clone for Notification
fn clone(&self) -> Notification
[src]
fn clone(&self) -> Notification
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Notification
impl Send for Notification
impl Sync for Notification
impl Sync for Notification