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

SyntaxError

The value had some syntatic error.

EndOfStreamError

EOF while deserializing a value.

UnknownFieldError

Unknown field in struct.

MissingFieldError

Struct is missing a field.

Trait Implementations

impl Error for Error

fn syntax(_: &str) -> Self

fn end_of_stream() -> Self

fn unknown_field(field: &str) -> Self

fn missing_field(field: &'static str) -> Self

fn length_mismatch(_len: usize) -> Self

fn type_mismatch(_type: Type) -> Self

Derived Implementations

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Error

fn clone(&self) -> Error

fn clone_from(&mut self, source: &Self)