[][src]Struct google_fcm1::Notification

pub struct Notification {
    pub body: Option<String>,
    pub image: Option<String>,
    pub title: Option<String>,
}

Basic notification template to use across all platforms.

This type is not used in any activity, and only used as part of another schema.

Fields

body: Option<String>

The notification's body text.

image: Option<String>

Contains the URL of an image that is going to be downloaded on the device and displayed in a notification. JPEG, PNG, BMP have full support across platforms. Animated GIF and video only work on iOS. WebP and HEIF have varying levels of support across platforms and platform versions. Android has 1MB image size limit. Quota usage and implications/costs for hosting image on Firebase Storage: https://firebase.google.com/pricing

title: Option<String>

The notification's title.

Trait Implementations

impl Clone for Notification[src]

impl Debug for Notification[src]

impl Default for Notification[src]

impl<'de> Deserialize<'de> for Notification[src]

impl Part for Notification[src]

impl Serialize for Notification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any