Struct cloudevents::EventBuilderV10
source · pub struct EventBuilderV10 { /* private fields */ }
Expand description
Builder to create a CloudEvent V1.0
Implementations§
source§impl EventBuilder
impl EventBuilder
pub fn id(self, id: impl Into<String>) -> Self
pub fn source(self, source: impl Into<String>) -> Self
pub fn ty(self, ty: impl Into<String>) -> Self
pub fn subject(self, subject: impl Into<String>) -> Self
pub fn time(self, time: impl TryIntoTime) -> Self
pub fn extension( self, extension_name: &str, extension_value: impl Into<ExtensionValue> ) -> Self
pub fn data( self, datacontenttype: impl Into<String>, data: impl Into<Data> ) -> Self
pub fn data_with_schema( self, datacontenttype: impl Into<String>, schemaurl: impl TryIntoUrl, data: impl Into<Data> ) -> Self
Trait Implementations§
source§impl Clone for EventBuilder
impl Clone for EventBuilder
source§fn clone(&self) -> EventBuilder
fn clone(&self) -> EventBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more