[][src]Trait cloudevents::event::AttributesReader

pub trait AttributesReader {
    fn get_id(&self) -> &str;
fn get_source(&self) -> &str;
fn get_specversion(&self) -> SpecVersion;
fn get_type(&self) -> &str;
fn get_datacontenttype(&self) -> Option<&str>;
fn get_dataschema(&self) -> Option<&str>;
fn get_subject(&self) -> Option<&str>;
fn get_time(&self) -> Option<&DateTime<FixedOffset>>;
fn get_extension(&self, extension_name: &str) -> Option<&ExtensionValue>;
fn get_extensions(&self) -> Vec<(&str, &ExtensionValue)>; }

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

Loading content...

Implementors

impl AttributesReader for cloudevents::event::Attributes[src]

impl AttributesReader for cloudevents::event::AttributesV10[src]

impl AttributesReader for Event[src]

Loading content...