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

The value had some custom error.

The value had an incorrect type.

The value had an invalid length.

The value is invalid and cannot be deserialized.

EOF while deserializing a value.

Unknown variant in enum.

Unknown field in struct.

Struct is missing a field.

Trait Implementations

impl Clone for Error

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl PartialEq<Error> for Error

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Error for Error

impl Debug for Error

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter.