HasNotificationPayload

Trait HasNotificationPayload 

Source
pub trait HasNotificationPayload {
    // Provided methods
    fn payload(&self) -> Option<&Value> { ... }
    fn serialize_payload(&self) -> Result<String, String> { ... }
}
Expand description

Trait for notification payload and data structure

Provided Methods§

Source

fn payload(&self) -> Option<&Value>

Get the notification payload data

Source

fn serialize_payload(&self) -> Result<String, String>

Serialize notification to JSON

Implementors§