pub enum Detection {
AllOf(Vec<DetectionItem>),
AnyOf(Vec<Detection>),
Keywords(Vec<SigmaValue>),
}Expand description
A detection definition: a group of detection items or nested detections.
When constructed from a YAML mapping, items are AND-linked. When constructed from a YAML list of mappings, sub-detections are OR-linked.
Reference: pySigma rule/detection.py SigmaDetection
Variants§
AllOf(Vec<DetectionItem>)
AND-linked detection items (from a YAML mapping).
AnyOf(Vec<Detection>)
OR-linked sub-detections (from a YAML list of mappings).
Keywords(Vec<SigmaValue>)
Keyword detection: plain value(s) without a field.
Trait Implementations§
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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