Trait cloudevents::AttributesReader [−][src]
pub trait AttributesReader { fn id(&self) -> &str; fn source(&self) -> &UriReference; fn specversion(&self) -> SpecVersion; fn ty(&self) -> &str; fn datacontenttype(&self) -> Option<&str>; fn dataschema(&self) -> Option<&Url>; fn subject(&self) -> Option<&str>; fn time(&self) -> Option<&DateTime<Utc>>; }
Expand description
Trait to get CloudEvents Context attributes.
Required methods
fn source(&self) -> &UriReference
fn source(&self) -> &UriReference
Get the source.
fn specversion(&self) -> SpecVersion
fn specversion(&self) -> SpecVersion
Get the specversion.
fn datacontenttype(&self) -> Option<&str>
fn datacontenttype(&self) -> Option<&str>
Get the datacontenttype.
fn dataschema(&self) -> Option<&Url>
fn dataschema(&self) -> Option<&Url>
Get the dataschema.