[][src]Trait cloudevents::AttributesWriter

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

Required methods

pub fn set_id(&mut self, id: impl Into<String>) -> String[src]

Set the id. Returns the previous value.

pub fn set_source(&mut self, source: impl Into<Url>) -> Url[src]

Set the source. Returns the previous value.

pub fn set_type(&mut self, ty: impl Into<String>) -> String[src]

Set the type. Returns the previous value.

pub fn set_subject(
    &mut self,
    subject: Option<impl Into<String>>
) -> Option<String>
[src]

Set the subject. Returns the previous value.

pub fn set_time(
    &mut self,
    time: Option<impl Into<DateTime<Utc>>>
) -> Option<DateTime<Utc>>
[src]

Set the time. Returns the previous value.

pub fn set_datacontenttype(
    &mut self,
    datacontenttype: Option<impl Into<String>>
) -> Option<String>
[src]

Set the datacontenttype. Returns the previous value.

pub fn set_dataschema(
    &mut self,
    dataschema: Option<impl Into<Url>>
) -> Option<Url>
[src]

Set the dataschema. Returns the previous value.

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...