pub enum Error {
Show 14 variants
Xml(Error),
WrongStart(String, String),
WrongEnd(String, String),
MissingStart,
MissingAttribute(String),
MissingChild(String),
MissingText,
DoubleChild(String),
DoubleText,
UnexpectedAttribute(String),
UnexpectedChild(String),
UnexpectedText,
InnerDeserialiaztionError(String, Box<Error>),
Deserialization(String),
}
Expand description
The error type for this crate
Variants§
Xml(Error)
Failed to parse XML
WrongStart(String, String)
Start element doesn’t match the expected element
WrongEnd(String, String)
End element doesn’t match the expected element
MissingStart
Start element missing
MissingAttribute(String)
Missing required attribute
MissingChild(String)
Missing required child element
MissingText
Missing required element text
DoubleChild(String)
Encountered multiple child elements with the given name when only one was expected
DoubleText
Encountered multiple text events when only one was expected
UnexpectedAttribute(String)
Encountered an unexpected attribute
UnexpectedChild(String)
Encountered an unexpected child element
UnexpectedText
Encountered an unexpected text event
InnerDeserialiaztionError(String, Box<Error>)
Bubbling deserialization error
Deserialization(String)
General deserialization error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more