Struct fcm::NotificationBuilder [] [src]

pub struct NotificationBuilder { /* 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 NotificationBuilder
[src]

[src]

Get a new NotificationBuilder instance, with a title.

[src]

[src]

Set the body of the notification

[src]

Set the notification icon.

[src]

Set the sound to be played

[src]

Set the badge for iOS notifications

[src]

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

[src]

The color of the icon, in #rrggbb format

[src]

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

[src]

Set the body key string for localization

[src]

String value to replace format specifiers in the body string.

[src]

Set the title key string for localization

[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