pub enum ExtensionValue {
Int(i64),
Bytes(Vec<u8>),
AlternativeName(AlternativeName),
Unsupported,
}
Expand description
An enum of possible value types for Extension
.
Variants§
Int(i64)
An Integer in the range [-2^64, 2^64-1]
Bytes(Vec<u8>)
A bytes.
AlternativeName(AlternativeName)
An Alternative Name.
Unsupported
An unsupported value.
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<C> Decode<'_, C> for ExtensionValuewhere
C: ExtensionValueTypeTrait + Debug,
impl<C> Decode<'_, C> for ExtensionValuewhere
C: ExtensionValueTypeTrait + Debug,
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 Encode<()> for ExtensionValue
impl Encode<()> for ExtensionValue
source§impl<'_enum> From<&'_enum ExtensionValue> for ExtensionValueType
impl<'_enum> From<&'_enum ExtensionValue> for ExtensionValueType
source§fn from(val: &'_enum ExtensionValue) -> ExtensionValueType
fn from(val: &'_enum ExtensionValue) -> ExtensionValueType
Converts to this type from the input type.
source§impl From<ExtensionValue> for ExtensionValueType
impl From<ExtensionValue> for ExtensionValueType
source§fn from(val: ExtensionValue) -> ExtensionValueType
fn from(val: ExtensionValue) -> ExtensionValueType
Converts to this type from the input type.
source§impl PartialEq for ExtensionValue
impl PartialEq for ExtensionValue
source§impl Serialize for ExtensionValue
impl Serialize 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)