pub enum DecodedValue {
Bool(bool),
U64(u64),
I64(i64),
F64(f64),
Str(String),
Bytes(Vec<u8>),
Flags(Vec<String>),
Fields(Vec<(String, u64)>),
DateTime(i64),
Unavailable(String),
}Expand description
Owned decoded value (parity with the Go/TS union), alloc only.
Variants§
Bool(bool)
U64(u64)
I64(i64)
F64(f64)
Str(String)
Bytes(Vec<u8>)
Flags(Vec<String>)
Names of set flags.
Fields(Vec<(String, u64)>)
field_id -> numeric sub-value.
DateTime(i64)
Implementations§
Trait Implementations§
Source§impl Clone for DecodedValue
impl Clone for DecodedValue
Source§impl Debug for DecodedValue
impl Debug for DecodedValue
Source§impl PartialEq for DecodedValue
impl PartialEq for DecodedValue
impl StructuralPartialEq for DecodedValue
Auto Trait Implementations§
impl Forget for DecodedValue
impl Freeze for DecodedValuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, u64)>: Freeze,
impl Move for DecodedValue
impl RefUnwindSafe for DecodedValue
impl Send for DecodedValuewhere
RawVecInner: Send,
impl Sync for DecodedValuewhere
RawVecInner: Sync,
impl Unpin for DecodedValue
impl UnsafeUnpin for DecodedValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, u64)>: UnsafeUnpin,
impl UnwindSafe for DecodedValuewhere
RawVecInner: UnwindSafe,
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