pub struct WebhookSubscriber {
pub id: String,
pub url: String,
pub event_pattern: String,
pub headers: HashMap<String, String>,
pub retry_count: u32,
pub timeout_ms: u64,
}Expand description
Delivers events via HTTP POST to a webhook URL.
Retry strategy: 2xx = success, 4xx = no retry, 5xx / connection error = retry.
Requires the events cargo feature for actual HTTP delivery.
Fields§
§id: String§url: String§event_pattern: String§headers: HashMap<String, String>§retry_count: u32§timeout_ms: u64Implementations§
Trait Implementations§
Source§impl Clone for WebhookSubscriber
impl Clone for WebhookSubscriber
Source§fn clone(&self) -> WebhookSubscriber
fn clone(&self) -> WebhookSubscriber
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebhookSubscriber
impl Debug for WebhookSubscriber
Source§impl EventSubscriber for WebhookSubscriber
impl EventSubscriber for WebhookSubscriber
Source§fn subscriber_id(&self) -> &str
fn subscriber_id(&self) -> &str
Unique ID for this subscriber (used by unsubscribe). Read more
Source§fn event_pattern(&self) -> &str
fn event_pattern(&self) -> &str
The event type pattern this subscriber is interested in. Read more
Auto Trait Implementations§
impl Freeze for WebhookSubscriber
impl RefUnwindSafe for WebhookSubscriber
impl Send for WebhookSubscriber
impl Sync for WebhookSubscriber
impl Unpin for WebhookSubscriber
impl UnsafeUnpin for WebhookSubscriber
impl UnwindSafe for WebhookSubscriber
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