Enum serde_xml::error::Error [] [src]

pub enum Error {
    SyntaxError(ErrorCodeusizeusize),
    IoError(Error),
    MissingFieldError(&'static str),
    UnknownField(String),
}

Variants

SyntaxError(ErrorCodeusizeusize)

msg, line, col

IoError(Error)MissingFieldError(&'static str)UnknownField(String)

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(error: Error) -> Error

Performs the conversion.

impl Error for Error
[src]

fn syntax(msg: &str) -> Error

Raised when there is general error when deserializing a type.

fn unknown_field(field: &str) -> Error

Raised when a Deserialize struct type received an unexpected struct field.

fn end_of_stream() -> Error

Raised when a Deserialize type unexpectedly hit the end of the stream.

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

Raised when a Deserialize struct type did not receive a field.

fn length_mismatch(_len: usize) -> Self

Raised when a fixed sized sequence or map was passed in the wrong amount of arguments.

fn type_mismatch(_type: 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.