#[non_exhaustive]pub enum DnAttributeValue {
Utf8(String),
Uint(u64),
Bytes(Vec<u8>),
}Expand description
The wire-typed value carried inside a DnAttribute::Other.
#[non_exhaustive]: TLV admits value types beyond the three surfaced here
(e.g. signed integers, booleans); marking this lets a future variant be
added without a semver break. Downstream matches must include a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8(String)
A UTF-8 string value.
Uint(u64)
An unsigned integer value.
Bytes(Vec<u8>)
A raw byte-string value.
Trait Implementations§
Source§impl Clone for DnAttributeValue
impl Clone for DnAttributeValue
Source§fn clone(&self) -> DnAttributeValue
fn clone(&self) -> DnAttributeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DnAttributeValue
impl Debug for DnAttributeValue
impl Eq for DnAttributeValue
Source§impl PartialEq for DnAttributeValue
impl PartialEq for DnAttributeValue
impl StructuralPartialEq for DnAttributeValue
Auto Trait Implementations§
impl Freeze for DnAttributeValue
impl RefUnwindSafe for DnAttributeValue
impl Send for DnAttributeValue
impl Sync for DnAttributeValue
impl Unpin for DnAttributeValue
impl UnsafeUnpin for DnAttributeValue
impl UnwindSafe for DnAttributeValue
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