pub enum DecodedData {
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
Uint8(u8),
Uint16(u16),
Uint32(u32),
Uint64(u64),
Uint128(u128),
Str(String),
Bytes(Vec<u8>),
}
Expand description
DecodedData
enum is used to wrap the decoded content into one of the supported data-type.
Example: DecodedData::Str("hello")
, contains the string hello
decoded back from the encoded bytes.
Variants§
Int8(i8)
Int8 data representation
Int16(i16)
Int16 data representation
Int32(i32)
Int32 data representation
Int64(i64)
Int64 data representation
Int128(i128)
Int128 data representation
Uint8(u8)
Uint8 data representation
Uint16(u16)
Uint16 data representation
Uint32(u32)
Uint32 data representation
Uint64(u64)
Uint64 data representation
Uint128(u128)
Uint128 data representation
Str(String)
Str data representation
Bytes(Vec<u8>)
Bytes data representation
Trait Implementations§
Source§impl Clone for DecodedData
impl Clone for DecodedData
Source§fn clone(&self) -> DecodedData
fn clone(&self) -> DecodedData
Returns a duplicate 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 DecodedData
impl Debug for DecodedData
Source§impl PartialEq for DecodedData
impl PartialEq for DecodedData
impl Eq for DecodedData
impl StructuralPartialEq for DecodedData
Auto Trait Implementations§
impl Freeze for DecodedData
impl RefUnwindSafe for DecodedData
impl Send for DecodedData
impl Sync for DecodedData
impl Unpin for DecodedData
impl UnwindSafe for DecodedData
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