Enum scale_serialization::SerdeType[][src]

pub enum SerdeType {
Show 22 variants Bool, U8, U16, U32, U64, U128, I8, I16, I32, I64, I128, Bytes, Char, Str, Sequence(Type), Map(TypeType), Tuple(TupleOrArray), Struct(Vec<Field>), StructUnit, StructNewType(Type), StructTuple(Vec<Field>), Variant(StringVec<Variant>, Option<u8>),
}
Expand description

A convenient representation of the scale-info types to a format that matches serde model more closely

Variants

Bool
U8
U16
U32
U64
U128
I8
I16
I32
I64
I128
Bytes
Char
Str
Sequence(Type)

Tuple Fields of Sequence

0: Type
Map(TypeType)

Tuple Fields of Map

0: Type1: Type

Tuple Fields of Tuple

0: TupleOrArray
Struct(Vec<Field>)

Tuple Fields of Struct

0: Vec<Field>
StructUnit
StructNewType(Type)

Tuple Fields of StructNewType

0: Type
StructTuple(Vec<Field>)

Tuple Fields of StructTuple

0: Vec<Field>
Variant(StringVec<Variant>, Option<u8>)

Tuple Fields of Variant

0: String1: Vec<Variant>2: Option<u8>

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.