[][src]Struct google_fcm1::AndroidConfig

pub struct AndroidConfig {
    pub priority: Option<String>,
    pub collapse_key: Option<String>,
    pub fcm_options: Option<AndroidFcmOptions>,
    pub ttl: Option<String>,
    pub notification: Option<AndroidNotification>,
    pub data: Option<HashMap<String, String>>,
    pub restricted_package_name: Option<String>,
}

Android specific options for messages sent through FCM connection server.

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

Fields

priority: Option<String>

Message priority. Can take "normal" and "high" values. For more information, see Setting the priority of a message.

collapse_key: Option<String>

An identifier of a group of messages that can be collapsed, so that only the last message gets sent when delivery can be resumed. A maximum of 4 different collapse keys is allowed at any given time.

fcm_options: Option<AndroidFcmOptions>

Options for features provided by the FCM SDK for Android.

ttl: Option<String>

How long (in seconds) the message should be kept in FCM storage if the device is offline. The maximum time to live supported is 4 weeks, and the default value is 4 weeks if not set. Set it to 0 if want to send the message immediately. In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3.000000001s". The ttl will be rounded down to the nearest second.

notification: Option<AndroidNotification>

Notification to send to android devices.

data: Option<HashMap<String, String>>

Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.

restricted_package_name: Option<String>

Package name of the application where the registration token must match in order to receive the message.

Trait Implementations

impl Part for AndroidConfig[src]

impl Default for AndroidConfig[src]

impl Clone for AndroidConfig[src]

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

Performs copy-assignment from source. Read more

impl Debug for AndroidConfig[src]

impl Serialize for AndroidConfig[src]

impl<'de> Deserialize<'de> for AndroidConfig[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]