[][src]Enum serde_token::Token

pub enum Token<'a> {
    Bool(bool),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    I128(i128),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    U128(u128),
    F32(f32),
    F64(f64),
    Char(char),
    Str(&'a str),
    Bytes(&'a [u8]),
    None,
    Some,
    Unit,
    UnitStruct { /* fields omitted */ },
    UnitVariant { /* fields omitted */ },
    NewtypeStruct { /* fields omitted */ },
    NewtypeVariant { /* fields omitted */ },
    Seq { /* fields omitted */ },
    SeqEnd,
    Tuple { /* fields omitted */ },
    TupleEnd,
    TupleStruct { /* fields omitted */ },
    TupleStructEnd,
    TupleVariant { /* fields omitted */ },
    TupleVariantEnd,
    Map { /* fields omitted */ },
    MapEnd,
    Struct { /* fields omitted */ },
    StructEnd,
    StructVariant { /* fields omitted */ },
    StructVariantEnd,
    Enum { /* fields omitted */ },
}

A token corresponding to one of the types defined in the Serde data model.

Variants

Bool(bool)

A serialized bool.

I8(i8)

A serialized i8.

I16(i16)

A serialized i16.

I32(i32)

A serialized i32.

I64(i64)

A serialized i64.

I128(i128)

A serialized i128.

U8(u8)

A serialized u8.

U16(u16)

A serialized u16.

U32(u32)

A serialized u32.

U64(u64)

A serialized u64.

U128(u128)

A serialized u128.

F32(f32)

A serialized f32.

F64(f64)

A serialized f64.

Char(char)

A serialized char.

Str(&'a str)

A borrowed str.

Bytes(&'a [u8])

A borrowed [u8].

None

A serialized Option<T> containing none.

Some

The header to a serialized Option<T> containing some value.

Unit

A serialized ().

UnitStruct

A serialized unit struct of the given name.

Fields of UnitStruct

UnitVariant

A unit variant of an enum.

Fields of UnitVariant

NewtypeStruct

The header to a serialized newtype struct of the given name.

Fields of NewtypeStruct

NewtypeVariant

The header to a newtype variant of an enum.

Fields of NewtypeVariant

Seq

The header to a sequence.

Fields of Seq

SeqEnd

An indicator of the end of a sequence.

Tuple

The header to a tuple.

Fields of Tuple

TupleEnd

An indicator of the end of a tuple.

TupleStruct

The header to a tuple struct.

Fields of TupleStruct

TupleStructEnd

An indicator of the end of a tuple struct.

TupleVariant

The header to a tuple variant of an enum.

Fields of TupleVariant

TupleVariantEnd

An indicator of the end of a tuple variant.

Map

The header to a map.

Fields of Map

MapEnd

An indicator of the end of a map.

Struct

The header of a struct.

Fields of Struct

StructEnd

An indicator of the end of a struct.

StructVariant

The header of a struct variant of an enum.

Fields of StructVariant

StructVariantEnd

An indicator of the end of a struct variant.

Enum

The header to an enum of the given name.

Fields of Enum

Trait Implementations

impl<'a> PartialEq<Token<'a>> for Token<'a>[src]

impl<'a> Clone for Token<'a>[src]

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

Performs copy-assignment from source. Read more

impl<'a> Debug for Token<'a>[src]

Auto Trait Implementations

impl<'a> Send for Token<'a>

impl<'a> Sync for Token<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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