Struct apns2::Notification [] [src]

pub struct Notification {
    pub topic: String,
    pub device_token: String,
    pub payload: Payload,
    pub id: Option<Uuid>,
    pub expiration: Option<u64>,
    pub priority: Option<Priority>,
    pub collapse_id: Option<CollapseId>,
}

A notification struct contains all relevant data for a notification request sent to the APNS API. This includes other options not contained in the payload. These options are transferred with HTTP request headers.

Fields

The topic to use. Usually the app bundle id.

Optional id identifying the message.

Optional expiration time as UNIX timestamp.

Priority for the notification.

Methods

impl Notification
[src]

[src]

Create a new notification.

Trait Implementations

impl Clone for Notification
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Notification
[src]

[src]

Formats the value using the given formatter.