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

Custom
EndOfStream
InvalidType
InvalidValue
InvalidLength
UnknownVariant
UnknownField
MissingField

Methods

impl DeserializerError
[src]

fn to_error<E: Error>(&self) -> E

fn into_error<E: Error>(self) -> E

Trait Implementations

impl Error for DeserializerError
[src]

fn custom<T: Into<String>>(msg: T) -> Self

fn end_of_stream() -> Self

fn invalid_type(ty: Type) -> Self

fn invalid_value(msg: &str) -> Self

fn invalid_length(len: usize) -> Self

fn unknown_variant(field: &str) -> Self

fn unknown_field(field: &str) -> Self

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

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

impl Error for DeserializerError
[src]

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>
1.0.0

impl Display for DeserializerError
[src]

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

impl From<Error> for DeserializerError
[src]

fn from(e: Error) -> Self

Derived Implementations

impl Debug for DeserializerError
[src]

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