Struct fcm::NotificationBuilder [] [src]

pub struct NotificationBuilder<'a> { /* fields omitted */ }

A builder to get a Notification instance.

Examples

use fcm::NotificationBuilder;

let mut builder = NotificationBuilder::new();
builder.body("3 runs to win in 1 ball");
let notification = builder.finalize();

Methods

impl<'a> NotificationBuilder<'a>
[src]

[src]

Get a new NotificationBuilder instance, with a title.

Important traits for &'a mut W
[src]

Important traits for &'a mut W
[src]

Set the body of the notification

Important traits for &'a mut W
[src]

Set the notification icon.

Important traits for &'a mut W
[src]

Set the sound to be played

Important traits for &'a mut W
[src]

Set the badge for iOS notifications

Important traits for &'a mut W
[src]

Tagging a notification allows you to replace existing notifications with the same tag with this new notification

Important traits for &'a mut W
[src]

The color of the icon, in #rrggbb format

Important traits for &'a mut W
[src]

What happens when the user clicks on the notification. Refer to https://developers.google.com/cloud-messaging/http-server-ref#table2 for details.

Important traits for &'a mut W
[src]

Set the body key string for localization

Important traits for &'a mut W
[src]

String value to replace format specifiers in the body string.

Important traits for &'a mut W
[src]

Set the title key string for localization

Important traits for &'a mut W
[src]

String value to replace format specifiers in the title string.

[src]

Complete the build and get a Notification instance

Trait Implementations

Auto Trait Implementations

impl<'a> Send for NotificationBuilder<'a>

impl<'a> Sync for NotificationBuilder<'a>