Skip to main content

explain_rule

Function explain_rule 

Source
pub fn explain_rule(rule: &CompiledRule, event: &impl Event) -> RuleExplanation
Expand description

Explain why rule did or did not match event.

Visits every branch of the condition tree (no short-circuit, no bloom) and returns a RuleExplanation whose matched field equals the production verdict for the same rule and event.