Enum scale_serialization::SpecificType[][src]

pub enum SpecificType {
Show 22 variants Bool, U8, U16, U32, U64, U128, I8, I16, I32, I64, I128, Char, Str, Bytes(u32), Sequence(u32), Map(u32u32), Tuple(TupleOrArray), Struct(Vec<(String, u32)>), StructUnit, StructNewType(u32), StructTuple(Vec<u32>), Variant(StringVec<Variant<Portable>>, 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

Char

Str

Bytes(u32)

Tuple Fields

0: u32

Sequence(u32)

Tuple Fields

0: u32

Map(u32u32)

Tuple Fields

0: u32
1: u32

Tuple(TupleOrArray)

Tuple Fields

Struct(Vec<(String, u32)>)

Tuple Fields

StructUnit

StructNewType(u32)

Tuple Fields

0: u32

StructTuple(Vec<u32>)

Tuple Fields

0: Vec<u32>

Variant(StringVec<Variant<Portable>>, Option<u8>)

Tuple Fields

0: String
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

Convert self to a slice and append it to the destination.

If possible give a hint of expected size of the encoding. Read more

Convert self to an owned vector.

Convert self to a slice and then invoke the given closure with it.

Calculates the encoded size. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. 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

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)

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.