[][src]Struct google_fcm1::AndroidNotification

pub struct AndroidNotification {
    pub body: Option<String>,
    pub body_loc_key: Option<String>,
    pub body_loc_args: Option<Vec<String>>,
    pub title: Option<String>,
    pub color: Option<String>,
    pub channel_id: Option<String>,
    pub click_action: Option<String>,
    pub title_loc_key: Option<String>,
    pub sound: Option<String>,
    pub tag: Option<String>,
    pub icon: Option<String>,
    pub title_loc_args: Option<Vec<String>>,
}

Notification to send to android devices.

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. If present, it will override google.firebase.fcm.v1.Notification.body.

body_loc_key: Option<String>

The key to the body string in the app's string resources to use to localize the body text to the user's current localization. See String Resources for more information.

body_loc_args: Option<Vec<String>>

Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization. See Formatting and Styling for more information.

title: Option<String>

The notification's title. If present, it will override google.firebase.fcm.v1.Notification.title.

color: Option<String>

The notification's icon color, expressed in #rrggbb format.

channel_id: Option<String>

The notification's channel id (new in Android O). The app must create a channel with this channel ID before any notification with this channel ID is received. If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, FCM uses the channel ID specified in the app manifest.

click_action: Option<String>

The action associated with a user click on the notification. If specified, an activity with a matching intent filter is launched when a user clicks on the notification.

title_loc_key: Option<String>

The key to the title string in the app's string resources to use to localize the title text to the user's current localization. See String Resources for more information.

sound: Option<String>

The sound to play when the device receives the notification. Supports "default" or the filename of a sound resource bundled in the app. Sound files must reside in /res/raw/.

tag: Option<String>

Identifier used to replace existing notifications in the notification drawer. If not specified, each request creates a new notification. If specified and a notification with the same tag is already being shown, the new notification replaces the existing one in the notification drawer.

icon: Option<String>

The notification's icon. Sets the notification icon to myicon for drawable resource myicon. If you don't send this key in the request, FCM displays the launcher icon specified in your app manifest.

title_loc_args: Option<Vec<String>>

Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization. See Formatting and Styling for more information.

Trait Implementations

impl Part for AndroidNotification[src]

impl Default for AndroidNotification[src]

impl Clone for AndroidNotification[src]

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

Performs copy-assignment from source. Read more

impl Debug for AndroidNotification[src]

impl Serialize for AndroidNotification[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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