pub struct Payload {
pub alert: Option<Alert>,
pub badge: Option<u32>,
pub sound: Option<String>,
pub content_available: Option<bool>,
pub category: Option<String>,
pub thread_id: Option<String>,
}Fields§
§alert: Option<Alert>§badge: Option<u32>Updates the numeric badge for the app. Set to 0 to remove.
sound: Option<String>Sound to play. Use ‘default’ for the default sound.
content_available: Option<bool>Set to true to mark the app as having content available.
category: Option<String>§thread_id: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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 Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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