Struct cloudevents::event::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 moresource§impl Debug for EventBuilder
impl Debug for EventBuilder
source§impl Default for EventBuilder
impl Default for EventBuilder
source§impl EventBuilder for EventBuilder
impl EventBuilder for EventBuilder
Auto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)