Struct nakadi_types::event::publishable::EventMetaDataPub[][src]

pub struct EventMetaDataPub {
    pub eid: EventId,
    pub event_type: Option<EventTypeName>,
    pub occurred_at: DateTime<Utc>,
    pub parent_eids: Vec<EventId>,
    pub partition: Option<PartitionId>,
    pub flow_id: Option<FlowId>,
}
Expand description

Metadata of an event

See also Nakadi Manual

Fields

eid: EventId

Identifier of this Event.

event_type: Option<EventTypeName>

The EventType of this Event. This is enriched by Nakadi on reception of the Event based on the endpoint where the Producer sent the Event to.

If provided MUST match the endpoint. Failure to do so will cause rejection of the Event.

occurred_at: DateTime<Utc>

Timestamp of creation of the Event generated by the producer.

parent_eids: Vec<EventId>

Event identifier of the Event that caused the generation of this Event. Set by the producer.

partition: Option<PartitionId>

Indicates the partition assigned to this Event.

Required to be set by the client if partition strategy of the EventType is ‘user_defined’.

flow_id: Option<FlowId>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.