[][src]Trait cloudevents::AttributesWriter

pub trait AttributesWriter {
    fn set_id(&mut self, id: impl Into<String>);
fn set_source(&mut self, source: impl Into<Url>);
fn set_type(&mut self, ty: impl Into<String>);
fn set_subject(&mut self, subject: Option<impl Into<String>>);
fn set_time(&mut self, time: Option<impl Into<DateTime<Utc>>>); }

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.

Loading content...

Implementors

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

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

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

impl AttributesWriter for Event[src]

Loading content...