Trait WebhookMessage

Source
pub trait WebhookMessage:
    Debug
    + Send
    + Sync {
    // Required methods
    fn webhook_url(&self) -> &str;
    fn serialize(&self) -> String;
}
Expand description

Send a message to a webhook endpoint.

Required Methods§

Source

fn webhook_url(&self) -> &str

Source

fn serialize(&self) -> String

Implementors§