pub struct DetectConfig {
pub max_content_length: usize,
pub max_full_scan_bytes: usize,
pub preserve_attack_patterns: bool,
pub semantic_threshold: f64,
pub threat_score_threshold: f64,
}Expand description
Knob mapping for one detect call (spec config_knobs).
Fields§
§max_content_length: usizedetection_max_content_length (semantic budget, truncation budget).
max_full_scan_bytes: usizedetection_max_body_inspect_bytes (the preprocessor’s full-scan cap).
preserve_attack_patterns: booldetection_preserve_attack_patterns.
semantic_threshold: f64detection_semantic_threshold.
threat_score_threshold: f64detection_threat_score_threshold.
Trait Implementations§
Source§impl Clone for DetectConfig
impl Clone for DetectConfig
impl Copy for DetectConfig
Auto Trait Implementations§
impl Freeze for DetectConfig
impl RefUnwindSafe for DetectConfig
impl Send for DetectConfig
impl Sync for DetectConfig
impl Unpin for DetectConfig
impl UnsafeUnpin for DetectConfig
impl UnwindSafe for DetectConfig
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