Enum serde_value::DeserializerError [] [src]

pub enum DeserializerError {
    Custom(String),
    EndOfStream,
    InvalidType(Type),
    InvalidValue(String),
    InvalidLength(usize),
    UnknownVariant(String),
    UnknownField(String),
    MissingField(&'static str),
}

Variants

Methods

impl DeserializerError
[src]

Trait Implementations

impl Debug for DeserializerError
[src]

Formats the value using the given formatter.

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

A short description of the error. Read more

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

impl Display for DeserializerError
[src]

Formats the value using the given formatter.

impl From<Error> for DeserializerError
[src]

Performs the conversion.