Enum cloudevents::event::ExtensionValue
source · pub enum ExtensionValue {
String(String),
Boolean(bool),
Integer(i64),
}
Expand description
Represents all the possible CloudEvents extension values
Variants§
String(String)
Represents a String
value.
Boolean(bool)
Represents a bool
value.
Integer(i64)
Represents an integer i64
value.
Implementations§
Trait Implementations§
source§impl Clone for ExtensionValue
impl Clone for ExtensionValue
source§fn clone(&self) -> ExtensionValue
fn clone(&self) -> ExtensionValue
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 ExtensionValue
impl Debug for ExtensionValue
source§impl<'de> Deserialize<'de> for ExtensionValue
impl<'de> Deserialize<'de> for ExtensionValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ExtensionValue
impl Display for ExtensionValue
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 From<&str> for ExtensionValue
impl From<&str> for ExtensionValue
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 From<String> for ExtensionValue
impl From<String> for ExtensionValue
source§impl From<bool> for ExtensionValue
impl From<bool> for ExtensionValue
source§impl From<i64> for ExtensionValue
impl From<i64> for ExtensionValue
source§impl PartialEq for ExtensionValue
impl PartialEq for ExtensionValue
source§impl Serialize for ExtensionValue
impl Serialize for ExtensionValue
impl Eq for ExtensionValue
impl StructuralPartialEq for ExtensionValue
Auto Trait Implementations§
impl Freeze for ExtensionValue
impl RefUnwindSafe for ExtensionValue
impl Send for ExtensionValue
impl Sync for ExtensionValue
impl Unpin for ExtensionValue
impl UnwindSafe for ExtensionValue
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)