[][src]Trait cloudevents::event::AttributesWriter

pub trait AttributesWriter {
    fn set_id(&mut self, id: impl Into<String>);
fn set_source(&mut self, source: impl Into<String>);
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<FixedOffset>>>);
fn set_extension<'name, 'event: 'name>(
        &'event mut self,
        extension_name: &'name str,
        extension_value: impl Into<ExtensionValue>
    );
fn remove_extension<'name, 'event: 'name>(
        &'event mut self,
        extension_name: &'name str
    ) -> Option<ExtensionValue>; }

Required methods

fn set_id(&mut self, id: impl Into<String>)

fn set_source(&mut self, source: impl Into<String>)

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<FixedOffset>>>)

fn set_extension<'name, 'event: 'name>(
    &'event mut self,
    extension_name: &'name str,
    extension_value: impl Into<ExtensionValue>
)

fn remove_extension<'name, 'event: 'name>(
    &'event mut self,
    extension_name: &'name str
) -> Option<ExtensionValue>

Loading content...

Implementors

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

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

impl AttributesWriter for Event[src]

Loading content...