pub struct FieldMatch {
pub field: String,
pub value: Value,
pub selection: Option<String>,
pub matcher: Option<MatcherKind>,
pub pattern: Option<String>,
pub case_sensitive: Option<bool>,
pub negated: bool,
}Expand description
A specific field match within a detection.
The field and value keys are always present and preserve the
historical wire shape. The remaining keys are populated only when the
engine runs above MatchDetailLevel::Off and are skipped on
serialization when empty, so the default output is byte-identical to
pre-enrichment releases.
Fields§
§field: StringThe field name that matched ("keyword" for keyword matches).
value: ValueThe event value that triggered the match (null for absence matches).
selection: Option<String>The selection (named detection) the match came from.
matcher: Option<MatcherKind>The matcher kind that fired.
pattern: Option<String>The pattern the matcher tested against (Full level only, truncated).
case_sensitive: Option<bool>Whether the match was case-sensitive, when meaningful for the matcher.
negated: boolWhether the matcher was negated (|not / inverted).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldMatch
impl RefUnwindSafe for FieldMatch
impl Send for FieldMatch
impl Sync for FieldMatch
impl Unpin for FieldMatch
impl UnsafeUnpin for FieldMatch
impl UnwindSafe for FieldMatch
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