pub struct WebhookConfig {
pub max_retries: u32,
pub timeout_secs: u64,
pub retry_delay_ms: u64,
pub max_in_flight: usize,
pub max_delivery_history: usize,
pub outbound_allowlist: Vec<String>,
}Available on crate feature
events only.Expand description
Configuration for webhook delivery
Fields§
§max_retries: u32§timeout_secs: u64§retry_delay_ms: u64§max_in_flight: usize§max_delivery_history: usizeMaximum number of delivery records to keep per webhook
outbound_allowlist: Vec<String>Optional outbound host allowlist.
When empty, current strict public-host defaults apply. When non-empty, hosts must match one of these entries in addition to existing SSRF/public-network checks.
Supported entry forms:
example.com(exact host)*.example.com(subdomain match only)
Implementations§
Source§impl WebhookConfig
impl WebhookConfig
Sourcepub fn with_outbound_allowlist<I, S>(self, entries: I) -> Self
pub fn with_outbound_allowlist<I, S>(self, entries: I) -> Self
Replace outbound allowlist entries with normalized host rules.
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