pub struct TransformedRule {
pub rule: SigmaRule,
pub applied_items: Vec<String>,
pub state: PipelineState,
}Expand description
A rule after pipeline application, with the transformations that fired.
Returned by transform_rule and transform_collection for callers that
need to read the rewritten rule itself rather than evaluate it: a collector
deriving which log channels to subscribe to from the post-pipeline
logsource, a report showing the injected conditions, or a test asserting
that a mapping applied.
Fields§
§rule: SigmaRuleThe rule after every pipeline ran.
applied_items: Vec<String>Ids of the transformations that fired, sorted. Transformations without
an id: are not tracked, so this can be empty even though rule
changed.
state: PipelineStateThe merged state the pipelines accumulated (see
apply_pipelines_with_state).
Trait Implementations§
Source§impl Clone for TransformedRule
impl Clone for TransformedRule
Source§fn clone(&self) -> TransformedRule
fn clone(&self) -> TransformedRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransformedRule
impl RefUnwindSafe for TransformedRule
impl Send for TransformedRule
impl Sync for TransformedRule
impl Unpin for TransformedRule
impl UnsafeUnpin for TransformedRule
impl UnwindSafe for TransformedRule
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