pub struct EventConfig {
pub channel_capacity: usize,
pub persist_events: bool,
pub event_store: Option<Arc<dyn EventStore + Send + Sync>>,
pub max_in_memory_events: usize,
pub enable_webhooks: bool,
pub webhook_max_retries: u32,
pub webhook_timeout_secs: u64,
pub webhook_max_in_flight: usize,
pub webhook_retry_delay_ms: u64,
pub webhook_max_delivery_history: usize,
pub webhook_outbound_allowlist: Vec<String>,
}events only.Expand description
Configuration for the event system
Fields§
§channel_capacity: usizeChannel buffer size for broadcast
persist_events: boolWhether to persist events to the store
event_store: Option<Arc<dyn EventStore + Send + Sync>>Optional event store for persistence
max_in_memory_events: usizeMaximum events to keep in the default in-memory store
enable_webhooks: boolWhether to enable webhook delivery
webhook_max_retries: u32Maximum retry attempts for webhook delivery
webhook_timeout_secs: u64Webhook timeout in seconds
webhook_max_in_flight: usizeMaximum number of webhook requests in flight concurrently (values <= 1 are treated as 1 at runtime)
webhook_retry_delay_ms: u64Base delay in milliseconds for webhook retry backoff. Each retry uses exponential backoff up to a hard cap.
webhook_max_delivery_history: usizeMaximum webhook delivery records retained per webhook. Zero disables history retention for that webhook.
webhook_outbound_allowlist: Vec<String>Optional outbound webhook host allowlist.
Empty keeps current strict default behavior (allow any public host). Non-empty requires matching one of the configured host rules.
Trait Implementations§
Source§impl Clone for EventConfig
impl Clone for EventConfig
Source§fn clone(&self) -> EventConfig
fn clone(&self) -> EventConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more