Enum serde::de::value::Error [] [src]

pub enum Error {
    SyntaxError,
    EndOfStreamError,
    UnknownFieldError(String),
    MissingFieldError(&'static str),
}

This represents all the possible errors that can occur using the ValueDeserializer.

Variants

The value had some syntatic error.

EOF while deserializing a value.

Unknown field in struct.

Struct is missing a field.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

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 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 struct type received an unexpected struct field.

Raised when a Deserialize struct type did not receive a field.

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

Raised when a Deserialize was passed an incorrect type.

Raised when a Deserialize was passed an incorrect value.