[−][src]Trait cloudevents::AttributesWriter
Trait to set CloudEvents Context attributes.
Required methods
fn set_id(&mut self, id: impl Into<String>)
Set the id.
fn set_source(&mut self, source: impl Into<Url>)
Set the source.
fn set_type(&mut self, ty: impl Into<String>)
Set the type.
fn set_subject(&mut self, subject: Option<impl Into<String>>)
Set the subject.
fn set_time(&mut self, time: Option<impl Into<DateTime<Utc>>>)
Set the time.