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, Tuple, Enum, StructVariant, TupleVariant, UnitVariant, Bytes, }
Type
represents all the primitive types that can be deserialized. This is used by
Error::kind_mismatch
.
Variants
Bool | Represents a | |
Usize | Represents a | |
U8 | Represents a | |
U16 | Represents a | |
U32 | Represents a | |
U64 | Represents a | |
Isize | Represents a | |
I8 | Represents a | |
I16 | Represents a | |
I32 | Represents a | |
I64 | Represents a | |
F32 | Represents a | |
F64 | Represents a | |
Char | Represents a | |
Str | Represents a | |
String | Represents a | |
Unit | Represents a | |
Option | Represents an | |
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. | |
Tuple | Represents a tuple type. | |
Enum | Represents an | |
StructVariant | Represents a struct variant. | |
TupleVariant | Represents a tuple variant. | |
UnitVariant | Represents a unit variant. | |
Bytes | Represents a |