Struct fcm::Notification [] [src]

pub struct Notification<'a> {
    // some fields omitted
}

This struct represents a FCM notification. Use the corresponding NotificationBuilder to get an instance. You can then use this notification instance when sending a FCM message.

Trait Implementations

impl<'a> Clone for Notification<'a>
[src]

fn clone(&self) -> Notification<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> PartialEq for Notification<'a>
[src]

fn eq(&self, __arg_0: &Notification<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Notification<'a>) -> bool

This method tests for !=.

impl<'a> Debug for Notification<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> ToJson for Notification<'a>
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON