a2 0.7.0

A native, asynchronous Apple push notification client
Documentation
///! The `aps` notification content builders
mod default;
mod options;
mod web;

pub use self::default::{DefaultAlert, DefaultNotificationBuilder};
pub use self::options::{CollapseId, NotificationOptions, Priority};
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>;
}