Struct toml::DecodeError
[−]
[src]
pub struct DecodeError { pub field: Option<String>, pub kind: DecodeErrorKind, }
Description for errors which can occur while decoding a type.
Fields
field: Option<String>
Field that this error applies to.
kind: DecodeErrorKind
The type of error which occurred while decoding,
Trait Implementations
impl Error for DecodeError
[src]
fn custom<T: Into<String>>(msg: T) -> DecodeError
Raised when there is general error when deserializing a type.
fn end_of_stream() -> DecodeError
Raised when a Deserialize
type unexpectedly hit the end of the stream.
fn missing_field(name: &'static str) -> DecodeError
raised when a deserialize
struct type did not receive a field.
fn unknown_field(name: &str) -> DecodeError
Raised when a Deserialize
struct type received an unexpected struct field.
fn invalid_type(ty: Type) -> Self
Raised when a Deserialize
was passed an incorrect type.
fn invalid_value(msg: &str) -> Self
Raised when a Deserialize
was passed an incorrect value.
fn invalid_length(len: usize) -> Self
Raised when a fixed sized sequence or map was passed in the wrong amount of arguments. Read more
fn unknown_variant(field: &str) -> Self
Raised when a Deserialize
enum type received an unexpected variant.
fn duplicate_field(field: &'static str) -> Self
Raised when a Deserialize
struct type received more than one of the same struct field. Read more
impl Debug for DecodeError
[src]
impl PartialEq for DecodeError
[src]
fn eq(&self, __arg_0: &DecodeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecodeError) -> bool
This method tests for !=
.