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[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl Display for Error[src]
fn fmt(&self, fmt: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<Error> for Error[src]
impl Error for Error[src]
fn custom<T: Into<String>>(msg: T) -> Error[src]
Raised when there is general error when deserializing a type.
fn unknown_field(field: &str) -> Error[src]
Raised when a Deserialize struct type received an unexpected struct field.
fn end_of_stream() -> Error[src]
Raised when a Deserialize type unexpectedly hit the end of the stream.
fn missing_field(field: &'static str) -> Error[src]
raised when a deserialize struct type did not receive a field.
fn invalid_type(ty: Type) -> Self[src]
Raised when a Deserialize was passed an incorrect type.
fn invalid_value(msg: &str) -> Self[src]
Raised when a Deserialize was passed an incorrect value.
fn invalid_length(len: usize) -> Self[src]
Raised when a fixed sized sequence or map was passed in the wrong amount of arguments. Read more
fn unknown_variant(field: &str) -> Self[src]
Raised when a Deserialize enum type received an unexpected variant.
fn duplicate_field(field: &'static str) -> Self[src]
Raised when a Deserialize struct type received more than one of the same struct field. Read more