Trait serde::de::Error[][src]

pub trait Error: Sized {
    fn syntax(msg: &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 { ... }
fn invalid_value(msg: &str) -> Self { ... } }

Error is a trait that allows a Deserialize to generically create a Deserializer error.

Required Methods

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.

Provided Methods

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.

Implementors