pub struct CloudEvent {
pub id: String,
pub source: String,
pub type_: String,
pub specversion: String,
pub datacontenttype: Option<String>,
pub data: Bytes,
}Expand description
CloudEvent binary-mode payload.
Fields§
§id: StringEvent id.
source: StringEvent source.
type_: StringEvent type.
specversion: StringSpecversion, usually 1.0.
datacontenttype: Option<String>Optional data content type.
data: BytesRaw event data.
Trait Implementations§
Source§impl Clone for CloudEvent
impl Clone for CloudEvent
Source§fn clone(&self) -> CloudEvent
fn clone(&self) -> CloudEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudEvent
impl Debug for CloudEvent
impl Eq for CloudEvent
Source§impl PartialEq for CloudEvent
impl PartialEq for CloudEvent
impl StructuralPartialEq for CloudEvent
Auto Trait Implementations§
impl !Freeze for CloudEvent
impl RefUnwindSafe for CloudEvent
impl Send for CloudEvent
impl Sync for CloudEvent
impl Unpin for CloudEvent
impl UnsafeUnpin for CloudEvent
impl UnwindSafe for CloudEvent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.