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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

[src]

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

[src]

This method tests for !=.

impl Error for Error
[src]

[src]

Raised when there is general error when deserializing a type.

[src]

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

[src]

Raised when a Deserialize was passed an incorrect type.

[src]

Raised when a Deserialize was passed an incorrect value.

[src]

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

[src]

Raised when a Deserialize enum type received an unexpected variant.

[src]

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

[src]

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

[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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