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)

Sequence(u32)

Map(u32u32)

Tuple(TupleOrArray)

Struct(Vec<(String, u32)>)

StructUnit

StructNewType(u32)

StructTuple(Vec<u32>)

Variant(StringVec<Variant<Portable>>, 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

Converts to this type from the input type.

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

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

🔬 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.