pub struct Detections {
pub named: HashMap<String, Detection>,
pub conditions: Vec<ConditionExpr>,
pub condition_strings: Vec<String>,
pub timeframe: Option<String>,
}Expand description
The complete detection section of a Sigma rule.
Contains named detection identifiers, condition expressions, and optional timeframe.
Reference: pySigma rule/detection.py SigmaDetections
Fields§
§named: HashMap<String, Detection>Named detections (e.g. selection, filter_main, etc.)
conditions: Vec<ConditionExpr>One or more condition expressions (parsed from condition string or list).
condition_strings: Vec<String>Raw condition strings (before parsing).
timeframe: Option<String>Optional timeframe for aggregation rules (deprecated in favor of correlations).
Trait Implementations§
Source§impl Clone for Detections
impl Clone for Detections
Source§fn clone(&self) -> Detections
fn clone(&self) -> Detections
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 Detections
impl Debug for Detections
Source§impl PartialEq for Detections
impl PartialEq for Detections
Source§impl Serialize for Detections
impl Serialize for Detections
impl StructuralPartialEq for Detections
Auto Trait Implementations§
impl Freeze for Detections
impl RefUnwindSafe for Detections
impl Send for Detections
impl Sync for Detections
impl Unpin for Detections
impl UnsafeUnpin for Detections
impl UnwindSafe for Detections
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