pub struct MessagePayload {
pub notification: Option<NotificationPayload>,
pub data: Option<HashMap<String, String>>,
pub fcm_options: Option<FcmOptions>,
pub from: Option<String>,
pub collapse_key: Option<String>,
pub message_id: Option<String>,
}Expand description
Message data delivered by Firebase Cloud Messaging.
Fields§
§notification: Option<NotificationPayload>§data: Option<HashMap<String, String>>§fcm_options: Option<FcmOptions>§from: Option<String>§collapse_key: Option<String>§message_id: Option<String>Trait Implementations§
Source§impl Clone for MessagePayload
impl Clone for MessagePayload
Source§fn clone(&self) -> MessagePayload
fn clone(&self) -> MessagePayload
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 MessagePayload
impl Debug for MessagePayload
Source§impl Default for MessagePayload
impl Default for MessagePayload
Source§fn default() -> MessagePayload
fn default() -> MessagePayload
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessagePayload
impl PartialEq for MessagePayload
impl Eq for MessagePayload
impl StructuralPartialEq for MessagePayload
Auto Trait Implementations§
impl Freeze for MessagePayload
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.