[][src]Struct eventsourcing::cloudevents::CloudEvent

pub struct CloudEvent {
    pub cloud_events_version: String,
    pub event_type: String,
    pub event_type_version: String,
    pub source: String,
    pub event_id: String,
    pub event_time: DateTime<Utc>,
    pub content_type: String,
    pub data: Value,
}

CloudEvent provides a data structure that is JSON-compliant with v1.0 of the CloudEvents specification. This means that any system with which you want to communicate that is also CloudEvents-aware can accept the serialized version of this data structure.

Fields

cloud_events_version: Stringevent_type: Stringevent_type_version: Stringsource: Stringevent_id: Stringevent_time: DateTime<Utc>content_type: Stringdata: Value

Trait Implementations

impl Clone for CloudEvent[src]

impl Debug for CloudEvent[src]

impl<'de> Deserialize<'de> for CloudEvent[src]

impl<E> From<E> for CloudEvent where
    E: Event
[src]

impl Serialize for CloudEvent[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,