[][src]Struct cloudevents::v02::CloudEvent

pub struct CloudEvent { /* fields omitted */ }

Cloud event definition

Methods

impl CloudEvent[src]

pub fn event_type(&self) -> &str[src]

Get the event type

pub fn source(&self) -> &str[src]

Get the source

pub fn event_id(&self) -> &str[src]

Get the event id

pub fn event_time(&self) -> Option<&DateTime<FixedOffset>>[src]

Get the event time

pub fn schema_url(&self) -> Option<&str>[src]

Get the schemaurl

pub fn data(&self) -> Option<&Data>[src]

Get the data

pub fn extensions(&self) -> Option<&HashMap<String, ExtensionValue>>[src]

Get the extensions

Trait Implementations

impl PartialEq<CloudEvent> for CloudEvent[src]

impl Debug for CloudEvent[src]

impl Serialize for CloudEvent[src]

impl Deserialize<'static> for CloudEvent[src]

Auto Trait Implementations

impl Send for CloudEvent

impl Sync for CloudEvent

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]