Trait cloudevents::event::AttributesReader
source · pub trait AttributesReader {
// Required methods
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§
sourcefn source(&self) -> &UriReference
fn source(&self) -> &UriReference
Get the source.
sourcefn specversion(&self) -> SpecVersion
fn specversion(&self) -> SpecVersion
Get the specversion.
sourcefn datacontenttype(&self) -> Option<&str>
fn datacontenttype(&self) -> Option<&str>
Get the datacontenttype.
sourcefn dataschema(&self) -> Option<&Url>
fn dataschema(&self) -> Option<&Url>
Get the dataschema.