pub struct EngineConfig {
pub deobfuscate: bool,
pub malware_scan: bool,
pub cve_scan: bool,
pub min_severity: Option<Severity>,
pub skip_rules: Vec<String>,
pub context: Option<String>,
}Expand description
Configuration for the detection engine.
Fields§
§deobfuscate: boolEnable deobfuscation.
malware_scan: boolEnable malware database scanning.
cve_scan: boolEnable CVE database scanning.
min_severity: Option<Severity>Minimum severity to report.
skip_rules: Vec<String>Rules to skip.
context: Option<String>Context to provide to rules.
Implementations§
Source§impl EngineConfig
impl EngineConfig
Sourcepub fn with_deobfuscation(self, enabled: bool) -> Self
pub fn with_deobfuscation(self, enabled: bool) -> Self
Enable deobfuscation.
Sourcepub fn with_malware_scan(self, enabled: bool) -> Self
pub fn with_malware_scan(self, enabled: bool) -> Self
Enable malware scanning.
Sourcepub fn with_cve_scan(self, enabled: bool) -> Self
pub fn with_cve_scan(self, enabled: bool) -> Self
Enable CVE scanning.
Sourcepub fn with_min_severity(self, severity: Severity) -> Self
pub fn with_min_severity(self, severity: Severity) -> Self
Set minimum severity.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnwindSafe for EngineConfig
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