pub enum XmlErrorInner {
Xml(Error),
MissingField(String),
MissingAttribute(String),
ParseInt(String, ParseIntError),
ParseFloat(String, ParseFloatError),
ParseBool(String, ParseBoolError),
MissingContent,
ParseDateTime(String, ParseError),
ParseUuid(String, Error),
Other(String),
}Expand description
Inner error variant of an error parsing an XML document.
Variants§
Xml(Error)
XML parsing error.
MissingField(String)
Required field was missing.
MissingAttribute(String)
Required attribute was missing.
ParseInt(String, ParseIntError)
Failed to parse content as integer.
ParseFloat(String, ParseFloatError)
Failed to parse content as float.
ParseBool(String, ParseBoolError)
Failed to parse content as boolean.
MissingContent
Missing required content.
ParseDateTime(String, ParseError)
Failed to parse datatime from string.
ParseUuid(String, Error)
Failed to parse UUID from string.
Other(String)
Some other error.
Trait Implementations§
Source§impl Clone for XmlErrorInner
impl Clone for XmlErrorInner
Source§fn clone(&self) -> XmlErrorInner
fn clone(&self) -> XmlErrorInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XmlErrorInner
impl Debug for XmlErrorInner
Source§impl Display for XmlErrorInner
impl Display for XmlErrorInner
Source§impl Error for XmlErrorInner
impl Error for XmlErrorInner
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 XmlErrorInner
impl RefUnwindSafe for XmlErrorInner
impl Send for XmlErrorInner
impl Sync for XmlErrorInner
impl Unpin for XmlErrorInner
impl UnwindSafe for XmlErrorInner
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