Enum cloudevents::Data
source · pub enum Data {
Binary(Vec<u8>),
String(String),
Json(Value),
}Expand description
Event data attribute representation
Variants§
Binary(Vec<u8>)
Event has a binary payload
String(String)
Event has a non-json string payload
Json(Value)
Event has a json payload
Trait Implementations§
source§impl PartialEq<Data> for Data
impl PartialEq<Data> for Data
impl Eq for Data
impl StructuralEq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.