pub struct WebhookSink { /* private fields */ }Expand description
POSTs each event as JSON to a configured URL.
Uses a simple HTTP client implementation without external dependencies — actual HTTP I/O is performed by the caller via the composition root when a real HTTP client is available.
For testing and registration purposes, this sink captures the URL and verifies serialization without making network calls.
Implementations§
Trait Implementations§
Source§impl EventSink for WebhookSink
impl EventSink for WebhookSink
Auto Trait Implementations§
impl Freeze for WebhookSink
impl RefUnwindSafe for WebhookSink
impl Send for WebhookSink
impl Sync for WebhookSink
impl Unpin for WebhookSink
impl UnsafeUnpin for WebhookSink
impl UnwindSafe for WebhookSink
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