pub enum CborValue {
Null,
Bool(bool),
Integer(i64),
Float(f64),
Text(String),
Bytes(Vec<u8>),
Array(Vec<CborValue>),
Map(Vec<(CborValue, CborValue)>),
}Expand description
Minimal CBOR value representation for runtime use.
Variants§
Null
Bool(bool)
Integer(i64)
Float(f64)
Text(String)
Bytes(Vec<u8>)
Array(Vec<CborValue>)
Map(Vec<(CborValue, CborValue)>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CborValue
impl RefUnwindSafe for CborValue
impl Send for CborValue
impl Sync for CborValue
impl Unpin for CborValue
impl UnsafeUnpin for CborValue
impl UnwindSafe for CborValue
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more