pub struct MappedEvent<'a, E: Event + ?Sized> { /* private fields */ }Expand description
An Event that rewrites field names via a Sigma -> [event field] map
before reading from the inner event.
Implementations§
Trait Implementations§
Source§impl<E: Event + ?Sized> Event for MappedEvent<'_, E>
impl<E: Event + ?Sized> Event for MappedEvent<'_, E>
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<'a, E> Freeze for MappedEvent<'a, E>where
E: ?Sized,
impl<'a, E> RefUnwindSafe for MappedEvent<'a, E>where
E: RefUnwindSafe + ?Sized,
impl<'a, E> Send for MappedEvent<'a, E>
impl<'a, E> Sync for MappedEvent<'a, E>
impl<'a, E> Unpin for MappedEvent<'a, E>where
E: ?Sized,
impl<'a, E> UnsafeUnpin for MappedEvent<'a, E>where
E: ?Sized,
impl<'a, E> UnwindSafe for MappedEvent<'a, E>where
E: RefUnwindSafe + ?Sized,
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