Struct a2::request::payload::APS [−][src]
pub struct APS<'a> { pub alert: Option<APSAlert<'a>>, pub badge: Option<u32>, pub sound: Option<&'a str>, pub content_available: Option<u8>, pub category: Option<&'a str>, pub mutable_content: Option<u8>, }
The pre-defined notification data.
Fields
alert: Option<APSAlert<'a>>
The notification content. Can be empty for silent notifications.
badge: Option<u32>
A number shown on top of the app icon.
sound: Option<&'a str>
The name of the sound file to play when user receives the notification.
content_available: Option<u8>
Set to one for silent notifications.
category: Option<&'a str>
When a notification includes the category key, the system displays the actions for that category as buttons in the banner or alert interface.
mutable_content: Option<u8>
If set to one, the app can change the notification content before displaying it to the user.
Trait Implementations
impl<'a> Debug for APS<'a>
[src]
impl<'a> Debug for APS<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Clone for APS<'a>
[src]
impl<'a> Clone for APS<'a>