cloudevents::event

Trait 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

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