Enum serde_urlencoded::de::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(String)
The value had some custom error.
InvalidType(Type)
The value had an incorrect type.
InvalidLength(usize)
The value had an invalid length.
InvalidValue(String)
The value is invalid and cannot be deserialized.
EndOfStream
EOF while deserializing a value.
UnknownVariant(String)
Unknown variant in enum.
UnknownField(String)
Unknown field in struct.
MissingField(&'static str)
Struct is missing a field.
Trait Implementations
impl Clone for Error
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Error for Error
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl PartialEq<Error> for Error
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Error for Error
fn custom<T>(msg: T) -> Error where T: Into<String>
fn end_of_stream() -> Error
fn invalid_type(ty: Type) -> Error
fn invalid_value(msg: &str) -> Error
fn invalid_length(len: usize) -> Error
fn unknown_variant(variant: &str) -> Error
fn unknown_field(field: &str) -> Error
fn missing_field(field: &'static str) -> Error
impl Debug for Error
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.