pub struct KvEvent { /* private fields */ }Expand description
Flat key-value event (e.g., from logfmt, syslog structured data).
No nested access (no dot-notation traversal), no arrays. All values are strings.
Implementations§
Trait Implementations§
Source§impl Event for KvEvent
impl Event for KvEvent
Source§fn get_field(&self, path: &str) -> Option<EventValue<'_>>
fn get_field(&self, path: &str) -> Option<EventValue<'_>>
Look up a field by name. Supports dot-notation for nested access. Read more
Source§fn any_string_value(&self, pred: &dyn Fn(&str) -> bool) -> bool
fn any_string_value(&self, pred: &dyn Fn(&str) -> bool) -> bool
Check if any string value anywhere in the event satisfies a predicate.
Used by keyword detection.
Source§fn field_keys(&self) -> Vec<Cow<'_, str>>
fn field_keys(&self) -> Vec<Cow<'_, str>>
Collect the names of every leaf field in the event, with nested
objects flattened to dot-separated paths (e.g.
actor.id).
Intermediate object names are not emitted; only leaves count.
Arrays contribute their parent path once; per-index suffixes are
not emitted. Read moreAuto Trait Implementations§
impl Freeze for KvEvent
impl RefUnwindSafe for KvEvent
impl Send for KvEvent
impl Sync for KvEvent
impl Unpin for KvEvent
impl UnsafeUnpin for KvEvent
impl UnwindSafe for KvEvent
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