Enum serde::de::Type [] [src]

pub enum Type {
    Bool,
    Usize,
    U8,
    U16,
    U32,
    U64,
    Isize,
    I8,
    I16,
    I32,
    I64,
    F32,
    F64,
    Char,
    Str,
    String,
    Unit,
    Option,
    Seq,
    Map,
    UnitStruct,
    NewtypeStruct,
    TupleStruct,
    Struct,
    Tuple,
    Enum,
    StructVariant,
    TupleVariant,
    UnitVariant,
    Bytes,
}

Type represents all the primitive types that can be deserialized. This is used by Error::kind_mismatch.

Variants

Bool

Represents a bool type.

Usize

Represents a usize type.

U8

Represents a u8 type.

U16

Represents a u16 type.

U32

Represents a u32 type.

U64

Represents a u64 type.

Isize

Represents a isize type.

I8

Represents a i8 type.

I16

Represents a i16 type.

I32

Represents a i32 type.

I64

Represents a i64 type.

F32

Represents a f32 type.

F64

Represents a f64 type.

Char

Represents a char type.

Str

Represents a &str type.

String

Represents a String type.

Unit

Represents a () type.

Option

Represents an Option<T> type.

Seq

Represents a sequence type.

Map

Represents a map type.

UnitStruct

Represents a unit struct type.

NewtypeStruct

Represents a newtype type.

TupleStruct

Represents a tuple struct type.

Struct

Represents a struct type.

Tuple

Represents a tuple type.

Enum

Represents an enum type.

StructVariant

Represents a struct variant.

TupleVariant

Represents a tuple variant.

UnitVariant

Represents a unit variant.

Bytes

Represents a &[u8] type.