pub struct EventMetaData {
pub eid: EventId,
pub event_type: EventTypeName,
pub occurred_at: DateTime<Utc>,
pub received_at: DateTime<Utc>,
pub parent_eids: Vec<EventId>,
pub partition: PartitionId,
pub version: String,
pub flow_id: FlowId,
}Expand description
Metadata of an event
See also Nakadi Manual
Fields§
§eid: EventIdIdentifier of this Event.
Clients MUST generate this value and it SHOULD be guaranteed to be unique from the perspective of the producer. Consumers MIGHT use this value to assert uniqueness of reception of the Event.
event_type: EventTypeNameThe EventType of this Event
occurred_at: DateTime<Utc>Timestamp of creation of the Event generated by the producer.
received_at: DateTime<Utc>Timestamp of the reception of the Event by Nakadi. This is enriched upon reception of the Event.
parent_eids: Vec<EventId>Event identifier of the Event that caused the generation of this Event. Set by the producer.
partition: PartitionIdIndicates the partition assigned to this Event.
version: String§flow_id: FlowIdTrait Implementations§
Source§impl Clone for EventMetaData
impl Clone for EventMetaData
Source§impl Debug for EventMetaData
impl Debug 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EventMetaData> for EventMetaDataPub
impl From<EventMetaData> for EventMetaDataPub
Source§fn from(m: EventMetaData) -> Self
fn from(m: EventMetaData) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more