[−][src]Struct google_fcm1::AndroidNotification
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]
fn default() -> AndroidNotification
[src]
impl Clone for AndroidNotification
[src]
fn clone(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for AndroidNotification
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for AndroidNotification
impl Unpin for AndroidNotification
impl Sync for AndroidNotification
impl UnwindSafe for AndroidNotification
impl RefUnwindSafe for AndroidNotification
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,