pub struct CompiledRule {
pub title: String,
pub id: Option<String>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub logsource: LogSource,
pub detections: HashMap<String, CompiledDetection>,
pub conditions: Vec<ConditionExpr>,
pub include_event: bool,
}Expand description
A compiled Sigma rule, ready for evaluation.
Fields§
§title: String§id: Option<String>§level: Option<Level>§logsource: LogSource§detections: HashMap<String, CompiledDetection>Compiled named detections, keyed by detection name.
conditions: Vec<ConditionExpr>Condition expression trees (usually one, but can be multiple).
include_event: boolWhether to include the full event JSON in the match result.
Controlled by the rsigma.include_event custom attribute.
Trait Implementations§
Source§impl Clone for CompiledRule
impl Clone for CompiledRule
Source§fn clone(&self) -> CompiledRule
fn clone(&self) -> CompiledRule
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 moreAuto Trait Implementations§
impl Freeze for CompiledRule
impl RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnsafeUnpin for CompiledRule
impl UnwindSafe for CompiledRule
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