[][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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Type
[src]

impl Eq for Type
[src]

impl PartialEq<Type> 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 Display for Type
[src]

Formats the value using the given formatter. Read more

impl Debug for Type
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Type

impl Sync for Type

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

Converts the given value to a String. Read more

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'_ mut I

Immutably borrows from an owned value. Read more

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

Important traits for &'_ mut I

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more