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§
Trait Implementations§
source§impl PartialEq for Webhook
impl PartialEq for Webhook
impl Eq for Webhook
impl StructuralEq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations§
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more