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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.