[−][src]Struct nakadi_types::event::publishable::EventMetaDataPub
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]
fn clone(&self) -> EventMetaDataPub
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EventMetaDataPub
[src]
impl From<EventMetaData> for EventMetaDataPub
[src]
fn from(m: EventMetaData) -> Self
[src]
impl Serialize for EventMetaDataPub
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventMetaDataPub
impl Send for EventMetaDataPub
impl Sync for EventMetaDataPub
impl Unpin for EventMetaDataPub
impl UnwindSafe for EventMetaDataPub
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,