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 for AttributeValue<'a>
impl<'a> PartialEq for AttributeValue<'a>
impl<'a> Eq for AttributeValue<'a>
impl<'a> StructuralPartialEq for AttributeValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttributeValue<'a>
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<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