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

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>,
}

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

impl EventMetaDataPub[src]

pub fn new<T: Into<EventId>>(eid: T) -> Self[src]

pub fn random_eid() -> Self[src]

pub fn event_type<T: Into<EventTypeName>>(self, v: T) -> Self[src]

pub fn occurred_at<T: Into<DateTime<Utc>>>(self, v: T) -> Self[src]

pub fn parent_eid<T: Into<EventId>>(self, v: T) -> Self[src]

pub fn partition<T: Into<PartitionId>>(self, v: T) -> Self[src]

pub fn flow_id<T: Into<FlowId>>(self, v: T) -> Self[src]

Trait Implementations

impl Clone for EventMetaDataPub[src]

impl Debug for EventMetaDataPub[src]

impl From<EventMetaData> for EventMetaDataPub[src]

impl Serialize for EventMetaDataPub[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,