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

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 Clone for Type[src]

impl Copy for Type[src]

impl Debug for Type[src]

impl Display for Type[src]

impl Eq for Type[src]

impl PartialEq<Type> for Type[src]

impl StructuralEq for Type[src]

impl StructuralPartialEq for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.