Struct firebae_cm::AndroidConfig
source · pub struct AndroidConfig { /* private fields */ }
Expand description
Represents all settings for an Android message. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#AndroidConfig for a complete list.
Implementations§
source§impl AndroidConfig
impl AndroidConfig
pub fn new() -> Self
pub fn collapse_key(&mut self, collapse_key: impl Into<String>) -> &mut Self
pub fn priority(&mut self, priority: AndroidMessagePriority) -> &mut Self
pub fn ttl(&mut self, seconds: usize) -> &mut Self
pub fn restricted_package_name( &mut self, restricted_package_name: impl Into<String> ) -> &mut Self
sourcepub fn data(&mut self, data: impl IntoFirebaseMap) -> Result<&mut Self>
pub fn data(&mut self, data: impl IntoFirebaseMap) -> Result<&mut Self>
Sets the data of the message. Accepts any type that implements IntoFirebaseMap, which will construct the required Map<String, String>. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#AndroidConfig.
pub fn notification(&mut self, notification: AndroidNotification) -> &mut Self
pub fn fcm_options(&mut self, fcm_options: AndroidFcmOptions) -> &mut Self
pub fn direct_boot_ok(&mut self, direct_boot_ok: bool) -> &mut Self
Trait Implementations§
source§impl Clone for AndroidConfig
impl Clone for AndroidConfig
source§fn clone(&self) -> AndroidConfig
fn clone(&self) -> AndroidConfig
Returns a copy 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