pub struct PushMessage {
pub to: String,
pub title: String,
pub body: String,
pub data: Value,
pub sound: String,
}Expand description
Push message to send to a provider
Fields§
§to: StringDevice push token
title: StringNotification title
body: StringNotification body
data: ValueExtra data payload (passed to the app when notification is tapped)
sound: StringSound to play (default: “default”)
Trait Implementations§
Source§impl Clone for PushMessage
impl Clone for PushMessage
Source§fn clone(&self) -> PushMessage
fn clone(&self) -> PushMessage
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 PushMessage
impl Debug for PushMessage
Source§impl<'de> Deserialize<'de> for PushMessage
impl<'de> Deserialize<'de> for PushMessage
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 PushMessage
impl RefUnwindSafe for PushMessage
impl Send for PushMessage
impl Sync for PushMessage
impl Unpin for PushMessage
impl UnsafeUnpin for PushMessage
impl UnwindSafe for PushMessage
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