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

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

Variants

SyntaxError
EndOfStreamError
UnknownFieldError
MissingFieldError

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