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§
Source§impl Clone for FieldMatch
impl Clone for FieldMatch
Source§fn clone(&self) -> FieldMatch
fn clone(&self) -> FieldMatch
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 FieldMatch
impl Debug for FieldMatch
Source§impl Default for FieldMatch
impl Default for FieldMatch
Source§fn default() -> FieldMatch
fn default() -> FieldMatch
Returns the “default value” for a type. Read more
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