Enum serde::de::value::Error
[−]
[src]
pub enum Error { Custom(String), InvalidType(Type), InvalidLength(usize), InvalidValue(String), EndOfStream, UnknownVariant(String), UnknownField(String), MissingField(&'static str), }
This represents all the possible errors that can occur using the ValueDeserializer
.
Variants
Custom | The value had some custom error. | |
InvalidType | The value had an incorrect type. | |
InvalidLength | The value had an invalid length. | |
InvalidValue | The value is invalid and cannot be deserialized. | |
EndOfStream | EOF while deserializing a value. | |
UnknownVariant | Unknown variant in enum. | |
UnknownField | Unknown field in struct. | |
MissingField | Struct is missing a field. |