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

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 PartialEq for Error
[src]

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

This method tests for !=.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for Error
[src]

Raised when there is general error when deserializing a type.

Raised when a Deserialize type unexpectedly hit the end of the stream.

Raised when a Deserialize was passed an incorrect type.

Raised when a Deserialize was passed an incorrect value.

Raised when a fixed sized sequence or map was passed in the wrong amount of arguments. Read more

Raised when a Deserialize enum type received an unexpected variant.

Raised when a Deserialize struct type received an unexpected struct field.

raised when a deserialize struct type did not receive a field.

Raised when a Deserialize struct type received more than one of the same struct field. Read more

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

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