pub struct EnforcementConfig {
pub mode: EnforcementMode,
pub analysis_depth: AnalysisDepth,
pub min_severity: SecuritySeverity,
pub min_confidence: f64,
pub timeout_ms: u64,
pub categories: Vec<CategoryEnforcement>,
}Expand description
Security enforcement configuration.
Controls whether the proxy acts on security findings before forwarding
requests upstream. Default is log mode (current behavior unchanged).
Fields§
§mode: EnforcementModeDefault enforcement mode.
analysis_depth: AnalysisDepthAnalysis depth: “fast” (regex only) or “full” (regex + ML ensemble).
min_severity: SecuritySeverityMinimum severity level to enforce on.
min_confidence: f64Minimum confidence score to enforce on (0.0-1.0).
timeout_ms: u64Timeout for enforcement analysis in milliseconds. Fail-open on timeout.
categories: Vec<CategoryEnforcement>Per-category enforcement overrides.
Trait Implementations§
Source§impl Clone for EnforcementConfig
impl Clone for EnforcementConfig
Source§fn clone(&self) -> EnforcementConfig
fn clone(&self) -> EnforcementConfig
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 EnforcementConfig
impl Debug for EnforcementConfig
Source§impl Default for EnforcementConfig
impl Default for EnforcementConfig
Source§impl<'de> Deserialize<'de> for EnforcementConfig
impl<'de> Deserialize<'de> for EnforcementConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnforcementConfig
impl RefUnwindSafe for EnforcementConfig
impl Send for EnforcementConfig
impl Sync for EnforcementConfig
impl Unpin for EnforcementConfig
impl UnsafeUnpin for EnforcementConfig
impl UnwindSafe for EnforcementConfig
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