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

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 struct field name.

Represents a tuple type.

Represents an enum type.

Represents an enum variant name.

Represents a struct variant.

Represents a tuple variant.

Represents a unit variant.

Represents a &[u8] type.

Trait Implementations

impl Copy for Type
[src]

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Type
[src]

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

This method tests for !=.

impl Eq for Type
[src]

impl Debug for Type
[src]

Formats the value using the given formatter.

impl Display for Type
[src]

Formats the value using the given formatter.