[][src]Trait cloudevents::AttributesReader

pub trait AttributesReader {
    pub fn id(&self) -> &str;
pub fn source(&self) -> &Url;
pub fn specversion(&self) -> SpecVersion;
pub fn ty(&self) -> &str;
pub fn datacontenttype(&self) -> Option<&str>;
pub fn dataschema(&self) -> Option<&Url>;
pub fn subject(&self) -> Option<&str>;
pub fn time(&self) -> Option<&DateTime<Utc>>; }

Required methods

pub fn id(&self) -> &str[src]

Get the id.

pub fn source(&self) -> &Url[src]

Get the source.

pub fn specversion(&self) -> SpecVersion[src]

Get the specversion.

pub fn ty(&self) -> &str[src]

Get the type.

pub fn datacontenttype(&self) -> Option<&str>[src]

Get the datacontenttype.

pub fn dataschema(&self) -> Option<&Url>[src]

Get the dataschema.

pub fn subject(&self) -> Option<&str>[src]

Get the subject.

pub fn time(&self) -> Option<&DateTime<Utc>>[src]

Get the time.

Loading content...

Implementors

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

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

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

impl AttributesReader for Event[src]

Loading content...