Trait cloudevents::AttributesWriter[][src]

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

Required methods

Set the id. Returns the previous value.

Set the source. Returns the previous value.

Set the type. Returns the previous value.

Set the subject. Returns the previous value.

Set the time. Returns the previous value.

Set the datacontenttype. Returns the previous value.

Set the dataschema. Returns the previous value.

Implementors