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

impl Debug for Type
[src]

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

Formats the value using the given formatter.

impl Eq for Type
[src]

impl PartialEq for Type
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Clone for Type
[src]

fn clone(&self) -> Type

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Type
[src]

impl Display for Type
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.