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.