pub struct EventRef {
pub timestamp: i64,
pub id: Option<String>,
}Expand description
A lightweight event reference: timestamp plus optional event ID.
Used in Refs mode for memory-efficient correlation event tracking.
Each ref costs ~40 bytes (vs. 100–1000+ bytes for compressed events),
making this mode suitable for high-volume correlations where only
traceability is needed.
Fields§
§timestamp: i64Event timestamp (epoch seconds).
id: Option<String>Event ID extracted from common fields (id, _id, event_id, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventRef
impl<'de> Deserialize<'de> for EventRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventRef
impl RefUnwindSafe for EventRef
impl Send for EventRef
impl Sync for EventRef
impl Unpin for EventRef
impl UnsafeUnpin for EventRef
impl UnwindSafe for EventRef
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