[−][src]Trait cloudevents::event::AttributesReader
Trait to get CloudEvents Context attributes.
Required methods
fn get_id(&self) -> &str
Get the id.
fn get_source(&self) -> &str
Get the source.
fn get_specversion(&self) -> SpecVersion
Get the specversion.
fn get_type(&self) -> &str
Get the type.
fn get_datacontenttype(&self) -> Option<&str>
Get the datacontenttype.
fn get_dataschema(&self) -> Option<&str>
Get the dataschema.
fn get_subject(&self) -> Option<&str>
Get the subject.
fn get_time(&self) -> Option<&DateTime<FixedOffset>>
Get the time.
fn get_extension(&self, extension_name: &str) -> Option<&ExtensionValue>
Get the extension named extension_name
fn get_extensions(&self) -> Vec<(&str, &ExtensionValue)>
Get all the extensions