pub struct EventMetadata {Show 19 fields
pub source: String,
pub user: Option<String>,
pub session_id: Option<String>,
pub trace_id: Option<String>,
pub causality_token: Option<String>,
pub version: Option<String>,
pub timestamp: DateTime<Utc>,
pub operation_context: Option<OperationContext>,
pub priority: EventPriority,
pub partition: Option<PartitionId>,
pub correlation_id: Option<String>,
pub checksum: Option<String>,
pub schema_version: String,
pub tags: HashMap<String, String>,
pub ttl_seconds: Option<u64>,
pub compression: Option<CompressionType>,
pub serialization_format: SerializationFormat,
pub message_size: Option<usize>,
pub processing_hints: ProcessingHints,
}Expand description
Enhanced event metadata for tracking and provenance with advanced features
Fields§
§source: StringSource system or component
user: Option<String>User who triggered the event
session_id: Option<String>Session identifier
trace_id: Option<String>Trace identifier for distributed tracing
causality_token: Option<String>Causality token for event ordering
version: Option<String>Event version for schema evolution
timestamp: DateTime<Utc>Event timestamp with high precision
operation_context: Option<OperationContext>Operation context with request details
priority: EventPriorityEvent priority for processing order
partition: Option<PartitionId>Partition information for routing
correlation_id: Option<String>Event correlation ID for related events
checksum: Option<String>Checksum for data integrity
schema_version: StringSchema version for data format
Event tags for filtering and routing
ttl_seconds: Option<u64>Event TTL (time to live) in seconds
compression: Option<CompressionType>Compression type used for payload
serialization_format: SerializationFormatSerialization format used
message_size: Option<usize>Message size in bytes
processing_hints: ProcessingHintsProcessing hints for consumers
Trait Implementations§
Source§impl Clone for EventMetadata
impl Clone for EventMetadata
Source§fn clone(&self) -> EventMetadata
fn clone(&self) -> EventMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventMetadata
impl Debug for EventMetadata
Source§impl Default for EventMetadata
impl Default for EventMetadata
Source§impl<'de> Deserialize<'de> for EventMetadata
impl<'de> Deserialize<'de> for EventMetadata
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>,
Source§impl From<EventMetadata> for EventMetadata
Conversion from types::EventMetadata to event::EventMetadata
impl From<EventMetadata> for EventMetadata
Conversion from types::EventMetadata to event::EventMetadata
Source§fn from(metadata: EventMetadata) -> Self
fn from(metadata: EventMetadata) -> Self
Source§impl From<EventMetadata> for EventMetadata
Conversion from event::EventMetadata to types::EventMetadata
impl From<EventMetadata> for EventMetadata
Conversion from event::EventMetadata to types::EventMetadata
Source§fn from(metadata: EventMetadata) -> Self
fn from(metadata: EventMetadata) -> Self
Auto Trait Implementations§
impl Freeze for EventMetadata
impl RefUnwindSafe for EventMetadata
impl Send for EventMetadata
impl Sync for EventMetadata
impl Unpin for EventMetadata
impl UnsafeUnpin for EventMetadata
impl UnwindSafe for EventMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.