pub struct RuleHeader {
pub rule_title: String,
pub rule_id: Option<String>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub custom_attributes: Arc<HashMap<String, Value>>,
pub enrichments: Option<Map<String, Value>>,
}Expand description
Fields shared between detection and correlation results.
The optional enrichments map is None for results emitted directly
by the engine; downstream middleware can populate it with arbitrary
JSON values to ride along with each result.
Fields§
§rule_title: StringTitle of the matched rule.
rule_id: Option<String>ID of the matched rule (if present).
level: Option<Level>Severity level.
Tags from the matched rule.
custom_attributes: Arc<HashMap<String, Value>>Custom attributes from the rule (merged with pipeline overrides).
Wrapped in Arc so per-match cloning is a pointer bump.
enrichments: Option<Map<String, Value>>Optional map of arbitrary enrichment values, written by downstream
middleware. None for engine-emitted results; skipped on serialize.
Trait Implementations§
Source§impl Clone for RuleHeader
impl Clone for RuleHeader
Source§fn clone(&self) -> RuleHeader
fn clone(&self) -> RuleHeader
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 moreSource§impl Debug for RuleHeader
impl Debug for RuleHeader
Auto Trait Implementations§
impl Freeze for RuleHeader
impl RefUnwindSafe for RuleHeader
impl Send for RuleHeader
impl Sync for RuleHeader
impl Unpin for RuleHeader
impl UnsafeUnpin for RuleHeader
impl UnwindSafe for RuleHeader
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