HasNotificationMetadata

Trait HasNotificationMetadata 

Source
pub trait HasNotificationMetadata {
    // Required method
    fn method(&self) -> &str;

    // Provided methods
    fn notification_type(&self) -> Option<&str> { ... }
    fn requires_ack(&self) -> bool { ... }
}
Expand description

Trait for notification metadata (method, type info)

Required Methods§

Source

fn method(&self) -> &str

The notification method name

Provided Methods§

Source

fn notification_type(&self) -> Option<&str>

Optional notification type or category

Source

fn requires_ack(&self) -> bool

Whether this notification requires acknowledgment

Implementors§