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

Required Methods§

source

fn id(&self) -> &str

Get the id.

source

fn source(&self) -> &UriReference

Get the source.

source

fn specversion(&self) -> SpecVersion

Get the specversion.

source

fn ty(&self) -> &str

Get the type.

source

fn datacontenttype(&self) -> Option<&str>

Get the datacontenttype.

source

fn dataschema(&self) -> Option<&Url>

Get the dataschema.

source

fn subject(&self) -> Option<&str>

Get the subject.

source

fn time(&self) -> Option<&DateTime<Utc>>

Get the time.

Implementors§

source§

impl AttributesReader for cloudevents::event::Attributes

source§

impl AttributesReader for cloudevents::event::AttributesV03

source§

impl AttributesReader for cloudevents::event::AttributesV10

source§

impl AttributesReader for Event