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

[]

Represents a bool type.

[]

Represents a usize type.

[]

Represents a u8 type.

[]

Represents a u16 type.

[]

Represents a u32 type.

[]

Represents a u64 type.

[]

Represents a isize type.

[]

Represents a i8 type.

[]

Represents a i16 type.

[]

Represents a i32 type.

[]

Represents a i64 type.

[]

Represents a f32 type.

[]

Represents a f64 type.

[]

Represents a char type.

[]

Represents a &str type.

[]

Represents a String type.

[]

Represents a () type.

[]

Represents an Option<T> type.

[]

Represents a sequence type.

[]

Represents a map type.

[]

Represents a unit struct type.

[]

Represents a newtype type.

[]

Represents a tuple struct type.

[]

Represents a struct type.

[]

Represents a tuple type.

[]

Represents an enum type.

[]

Represents a struct variant.

[]

Represents a tuple variant.

[]

Represents a unit variant.

[]

Represents a &[u8] type.

Auto Trait Implementations

impl Send for Type

impl Sync for Type