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

The notification content. Can be empty for silent notifications.

A number shown on top of the app icon.

The name of the sound file to play when user receives the notification.

Set to one for silent notifications.

When a notification includes the category key, the system displays the actions for that category as buttons in the banner or alert interface.

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]

Formats the value using the given formatter. Read more

impl<'a> Clone for APS<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for APS<'a>

impl<'a> Sync for APS<'a>