pub struct WebhookNotificationSink<F>{
pub url: String,
/* private fields */
}Expand description
A transport-agnostic webhook-shaped NotificationSink: holds a destination url and an
injected send closure, so this crate needs no HTTP client dependency — works with any
webhook-style endpoint (Slack, Discord, a generic HTTP receiver); the consumer supplies the
actual transport.
Fields§
§url: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for WebhookNotificationSink<F>where
F: Freeze,
impl<F> RefUnwindSafe for WebhookNotificationSink<F>where
F: RefUnwindSafe,
impl<F> Send for WebhookNotificationSink<F>where
F: Send,
impl<F> Sync for WebhookNotificationSink<F>where
F: Sync,
impl<F> Unpin for WebhookNotificationSink<F>where
F: Unpin,
impl<F> UnsafeUnpin for WebhookNotificationSink<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for WebhookNotificationSink<F>where
F: UnwindSafe,
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