pub enum MessageAttributeValue {
Boolean(bool),
Integer(i64),
String(String),
Binary(Vec<u8>),
Uri(Url),
UriRef(UriReference),
DateTime(DateTime<Utc>),
}Expand description
Union type representing a CloudEvent context attribute type.
Variants§
Boolean(bool)
Integer(i64)
String(String)
Binary(Vec<u8>)
Uri(Url)
UriRef(UriReference)
DateTime(DateTime<Utc>)
Trait Implementations§
source§impl Clone for MessageAttributeValue
impl Clone for MessageAttributeValue
source§fn clone(&self) -> MessageAttributeValue
fn clone(&self) -> MessageAttributeValue
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 MessageAttributeValue
impl Debug for MessageAttributeValue
source§impl Display for MessageAttributeValue
impl Display for MessageAttributeValue
source§impl From<ExtensionValue> for MessageAttributeValue
impl From<ExtensionValue> for MessageAttributeValue
source§fn from(that: ExtensionValue) -> Self
fn from(that: ExtensionValue) -> Self
Converts to this type from the input type.
source§impl From<MessageAttributeValue> for ExtensionValue
impl From<MessageAttributeValue> for ExtensionValue
source§fn from(that: MessageAttributeValue) -> Self
fn from(that: MessageAttributeValue) -> Self
Converts to this type from the input type.
source§impl PartialEq<MessageAttributeValue> for MessageAttributeValue
impl PartialEq<MessageAttributeValue> for MessageAttributeValue
source§fn eq(&self, other: &MessageAttributeValue) -> bool
fn eq(&self, other: &MessageAttributeValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryInto<Url> for MessageAttributeValue
impl TryInto<Url> for MessageAttributeValue
impl Eq for MessageAttributeValue
impl StructuralEq for MessageAttributeValue
impl StructuralPartialEq for MessageAttributeValue
Auto Trait Implementations§
impl RefUnwindSafe for MessageAttributeValue
impl Send for MessageAttributeValue
impl Sync for MessageAttributeValue
impl Unpin for MessageAttributeValue
impl UnwindSafe for MessageAttributeValue
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.