pub struct AndroidConfig {
pub collapse_key: Option<String>,
pub priority: Option<AndroidMessagePriority>,
pub ttl: Option<String>,
pub restricted_package_name: Option<String>,
pub data: Option<HashMap<String, String>>,
pub notification: Option<AndroidNotification>,
pub fcm_options: Option<AndroidFcmOptions>,
pub direct_boot_ok: Option<bool>,
}Expand description
Android specific options for messages sent through FCM connection server.
Fields§
§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.
priority: Option<AndroidMessagePriority>Message priority. Can be “NORMAL” or “HIGH”.
ttl: Option<String>How long (in seconds) the message should be kept in FCM storage if the device is offline.
restricted_package_name: Option<String>Package name of the application where the registration token must match in order to receive the message.
data: Option<HashMap<String, String>>Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data.
notification: Option<AndroidNotification>Notification to send to android devices.
fcm_options: Option<AndroidFcmOptions>Options for features provided by the FCM SDK for Android.
direct_boot_ok: Option<bool>If set to true, messages will be allowed to be delivered to the app while the device is in direct boot mode.
Trait Implementations§
Source§impl Clone for AndroidConfig
impl Clone for AndroidConfig
Source§fn clone(&self) -> AndroidConfig
fn clone(&self) -> AndroidConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AndroidConfig
impl Debug for AndroidConfig
Source§impl Default for AndroidConfig
impl Default for AndroidConfig
Source§fn default() -> AndroidConfig
fn default() -> AndroidConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AndroidConfig
impl<'de> Deserialize<'de> for AndroidConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AndroidConfig
impl RefUnwindSafe for AndroidConfig
impl Send for AndroidConfig
impl Sync for AndroidConfig
impl Unpin for AndroidConfig
impl UnwindSafe for AndroidConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more