revolt_a2 0.10.1

A native, asynchronous Apple push notification client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// The `aps` notification content builders
mod default;
mod options;
mod web;

pub use self::default::{DefaultAlert, DefaultNotificationBuilder, DefaultSound};
pub use self::options::{CollapseId, NotificationOptions, Priority, PushType};
pub use self::web::{WebNotificationBuilder, WebPushAlert};

use crate::request::payload::Payload;

pub trait NotificationBuilder<'a> {
    /// Generates the request payload to be send with the `Client`.
    fn build(self, device_token: &'a str, options: NotificationOptions<'a>) -> Payload<'a>;
}