Enum serde_xml::error::Error
[−]
[src]
pub enum Error { SyntaxError(ErrorCode, usize, usize), IoError(Error), MissingFieldError(&'static str), UnknownField(String), }
Variants
SyntaxError(ErrorCode, usize, usize)
msg, line, col
IoError(Error)
MissingFieldError(&'static str)
UnknownField(String)
Trait Implementations
impl Debug for Error
[src]
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]
impl From<Error> for Error
[src]
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.