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,
pub binary_min_run_length: usize,
}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.
binary_min_run_length: usizedetection_binary_min_run_length (reference bounds 4..=1024, default
16): minimum code-point length a printable run inside a binary-dense
multipart file-part payload must reach before the run is handed to the
pattern scan (see crate::binary_islands).
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