pub struct DeviceTokenFirebaseCloudMessaging {
pub token: String,
pub encrypt: bool,
}
Expand description
A token for Firebase Cloud Messaging
Fields§
§token: String
Device registration token; may be empty to deregister a device
encrypt: bool
True, if push notifications must be additionally encrypted
Trait Implementations§
Source§impl Clone for DeviceTokenFirebaseCloudMessaging
impl Clone for DeviceTokenFirebaseCloudMessaging
Source§fn clone(&self) -> DeviceTokenFirebaseCloudMessaging
fn clone(&self) -> DeviceTokenFirebaseCloudMessaging
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 Default for DeviceTokenFirebaseCloudMessaging
impl Default for DeviceTokenFirebaseCloudMessaging
Source§fn default() -> DeviceTokenFirebaseCloudMessaging
fn default() -> DeviceTokenFirebaseCloudMessaging
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceTokenFirebaseCloudMessaging
impl<'de> Deserialize<'de> for DeviceTokenFirebaseCloudMessaging
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
Source§impl PartialEq for DeviceTokenFirebaseCloudMessaging
impl PartialEq for DeviceTokenFirebaseCloudMessaging
Source§fn eq(&self, other: &DeviceTokenFirebaseCloudMessaging) -> bool
fn eq(&self, other: &DeviceTokenFirebaseCloudMessaging) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DeviceTokenFirebaseCloudMessaging
Auto Trait Implementations§
impl Freeze for DeviceTokenFirebaseCloudMessaging
impl RefUnwindSafe for DeviceTokenFirebaseCloudMessaging
impl Send for DeviceTokenFirebaseCloudMessaging
impl Sync for DeviceTokenFirebaseCloudMessaging
impl Unpin for DeviceTokenFirebaseCloudMessaging
impl UnwindSafe for DeviceTokenFirebaseCloudMessaging
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