pub struct ShieldConfig {
pub block_threshold: f64,
pub warn_threshold: f64,
pub sql: SqlFirewallConfig,
pub ssrf: SsrfConfig,
pub rate: RateConfig,
pub quarantine: QuarantineConfig,
pub audit_max_events: usize,
pub email: EmailGuardConfig,
}Expand description
Complete configuration for the Shield security engine.
Fields§
§block_threshold: f64Threat score threshold above which requests are blocked (0.0–1.0).
warn_threshold: f64Threat score threshold for logging warnings (0.0–1.0).
sql: SqlFirewallConfigSQL firewall configuration.
ssrf: SsrfConfigSSRF guard configuration.
rate: RateConfigRate limiting configuration.
quarantine: QuarantineConfigData quarantine configuration.
audit_max_events: usizeMaximum audit chain events to keep in memory before pruning.
email: EmailGuardConfigEmail guard configuration.
Trait Implementations§
Source§impl Clone for ShieldConfig
impl Clone for ShieldConfig
Source§fn clone(&self) -> ShieldConfig
fn clone(&self) -> ShieldConfig
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 ShieldConfig
impl Debug for ShieldConfig
Auto Trait Implementations§
impl Freeze for ShieldConfig
impl RefUnwindSafe for ShieldConfig
impl Send for ShieldConfig
impl Sync for ShieldConfig
impl Unpin for ShieldConfig
impl UnsafeUnpin for ShieldConfig
impl UnwindSafe for ShieldConfig
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