Struct pling::Webhook [−][src]
pub struct Webhook {
pub hook: Url,
}
Expand description
Send a POST request to the given URL. The body will contain the text of the notification.
Environment Variables
WEBHOOK_URL
Fields
hook: Url
Implementations
Loads the Webhook config from environment variables. The following variables are used:
WEBHOOK_URL
When WEBHOOK_URL
is unset or not a valid URL None is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Webhook
impl UnwindSafe for Webhook
Blanket Implementations
Mutably borrows from an owned value. Read more