pub struct DetectionItem {
pub field: FieldSpec,
pub values: Vec<SigmaValue>,
}Expand description
A single detection item: a field (with modifiers) mapped to one or more values.
Examples:
EventType: "user.mfa.factor.deactivate"→ field=“EventType”, values=[“user.mfa…”]Destination|contains|all: ['new-object', 'net.webclient']→ field=“Destination”, modifiers=[Contains, All], values=[…]
Reference: pySigma rule/detection.py SigmaDetectionItem
Fields§
§field: FieldSpecThe field specification (name + modifiers).
values: Vec<SigmaValue>One or more values to match against.
Trait Implementations§
Source§impl Clone for DetectionItem
impl Clone for DetectionItem
Source§fn clone(&self) -> DetectionItem
fn clone(&self) -> DetectionItem
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 DetectionItem
impl Debug for DetectionItem
Source§impl PartialEq for DetectionItem
impl PartialEq for DetectionItem
Source§impl Serialize for DetectionItem
impl Serialize for DetectionItem
impl StructuralPartialEq for DetectionItem
Auto Trait Implementations§
impl Freeze for DetectionItem
impl RefUnwindSafe for DetectionItem
impl Send for DetectionItem
impl Sync for DetectionItem
impl Unpin for DetectionItem
impl UnsafeUnpin for DetectionItem
impl UnwindSafe for DetectionItem
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