pub struct WebhookConfig {
pub url: String,
pub secret: Option<String>,
pub events: Vec<WebhookEvent>,
pub max_retries: u32,
pub timeout_ms: u64,
}Expand description
Configuration for an outbound webhook endpoint.
Fields§
§url: StringDestination URL for HTTP POST notifications.
secret: Option<String>Optional HMAC-SHA256 signing secret. When set, the notifier will
add an X-Hub-Signature-256 header to each notification.
events: Vec<WebhookEvent>Set of events that should trigger a notification.
An empty events list means no events are sent.
max_retries: u32Maximum number of delivery retries on failure (caller-managed).
timeout_ms: u64Per-attempt timeout in milliseconds (caller-managed).
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookConfig
impl Debug for WebhookConfig
Auto Trait Implementations§
impl Freeze for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnsafeUnpin for WebhookConfig
impl UnwindSafe for WebhookConfig
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