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,
    FieldName,
    Tuple,
    Enum,
    VariantName,
    StructVariant,
    TupleVariant,
    UnitVariant,
    Bytes,
}

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

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.

FieldName

Represents a struct field name.

Tuple

Represents a tuple type.

Enum

Represents an enum type.

VariantName

Represents an enum variant name.

StructVariant

Represents a struct variant.

TupleVariant

Represents a tuple variant.

UnitVariant

Represents a unit variant.

Bytes

Represents a &[u8] type.

Trait Implementations

Derived Implementations

impl Debug for Type

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for Type

impl PartialEq for Type

fn eq(&self, __arg_0: &Type) -> bool

fn ne(&self, __arg_0: &Type) -> bool

impl Clone for Type

fn clone(&self) -> Type

fn clone_from(&mut self, source: &Self)

impl Copy for Type