Enum serde_value::Unexpected[][src]

pub enum Unexpected {
Show 18 variants Bool(bool), Unsigned(u64), Signed(i64), Float(f64), Char(char), Str(String), Bytes(Vec<u8>), Unit, Option, NewtypeStruct, Seq, Map, Enum, UnitVariant, NewtypeVariant, TupleVariant, StructVariant, Other(String),
}

Variants

Bool(bool)

Tuple Fields

0: bool

Unsigned(u64)

Tuple Fields

0: u64

Signed(i64)

Tuple Fields

0: i64

Float(f64)

Tuple Fields

0: f64

Char(char)

Tuple Fields

0: char

Str(String)

Tuple Fields

0: String

Bytes(Vec<u8>)

Tuple Fields

0: Vec<u8>

Unit

Option

NewtypeStruct

Seq

Map

Enum

UnitVariant

NewtypeVariant

TupleVariant

StructVariant

Other(String)

Tuple Fields

0: String

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.