Enum cloudevents::event::AttributeValue
source · pub enum AttributeValue<'a> {
SpecVersion(SpecVersion),
String(&'a str),
URI(&'a Url),
URIRef(&'a UriReference),
Boolean(&'a bool),
Integer(&'a i64),
Time(&'a DateTime<Utc>),
}Expand description
Enum representing a borrowed value of a CloudEvent attribute. This represents the types defined in the CloudEvent spec type system
Variants§
SpecVersion(SpecVersion)
String(&'a str)
URI(&'a Url)
URIRef(&'a UriReference)
Boolean(&'a bool)
Integer(&'a i64)
Time(&'a DateTime<Utc>)
Trait Implementations§
source§impl<'a> Debug for AttributeValue<'a>
impl<'a> Debug for AttributeValue<'a>
source§impl Display for AttributeValue<'_>
impl Display for AttributeValue<'_>
source§impl<'a> From<&'a ExtensionValue> for AttributeValue<'a>
impl<'a> From<&'a ExtensionValue> for AttributeValue<'a>
source§fn from(ev: &'a ExtensionValue) -> Self
fn from(ev: &'a ExtensionValue) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq<AttributeValue<'a>> for AttributeValue<'a>
impl<'a> PartialEq<AttributeValue<'a>> for AttributeValue<'a>
source§fn eq(&self, other: &AttributeValue<'a>) -> bool
fn eq(&self, other: &AttributeValue<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for AttributeValue<'a>
impl<'a> StructuralEq for AttributeValue<'a>
impl<'a> StructuralPartialEq for AttributeValue<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AttributeValue<'a>
impl<'a> Send for AttributeValue<'a>
impl<'a> Sync for AttributeValue<'a>
impl<'a> Unpin for AttributeValue<'a>
impl<'a> UnwindSafe for AttributeValue<'a>
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.