#[non_exhaustive]pub enum DeserializeErrorKind {
Show 13 variants
XmlError(Error),
Utf8Error(Utf8Error),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
ParseTimestampError(String),
ParseDurationError(String),
ParseUuidError(Error),
MissingAttribute(String),
UnexpectedElement(String),
InvalidStructure(String),
IoError(Error),
AttrError(AttrError),
EscapeError(EscapeError),
}Expand description
The kind of error that occurred during deserialization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
XmlError(Error)
An error occurred while parsing XML.
Utf8Error(Utf8Error)
An error occurred while parsing UTF-8.
ParseIntError(ParseIntError)
An error occurred while parsing an integer.
ParseFloatError(ParseFloatError)
An error occurred while parsing a float.
ParseTimestampError(String)
An error occurred while parsing a timestamp.
ParseDurationError(String)
An error occurred while parsing a duration.
ParseUuidError(Error)
An error occurred while parsing a UUID.
MissingAttribute(String)
Missing required attribute.
UnexpectedElement(String)
Unexpected XML element.
InvalidStructure(String)
Invalid XML structure.
IoError(Error)
An I/O error occurred.
AttrError(AttrError)
An error occurred while parsing XML attributes.
EscapeError(EscapeError)
An error occurred while unescaping XML entities.
Trait Implementations§
Source§impl Debug for DeserializeErrorKind
impl Debug for DeserializeErrorKind
Source§impl Display for DeserializeErrorKind
impl Display for DeserializeErrorKind
Source§impl Error for DeserializeErrorKind
impl Error for DeserializeErrorKind
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()
Source§impl From<AttrError> for DeserializeErrorKind
impl From<AttrError> for DeserializeErrorKind
Source§impl From<Error> for DeserializeErrorKind
impl From<Error> for DeserializeErrorKind
Source§impl From<Error> for DeserializeErrorKind
impl From<Error> for DeserializeErrorKind
Source§impl From<Error> for DeserializeErrorKind
impl From<Error> for DeserializeErrorKind
Source§impl From<EscapeError> for DeserializeErrorKind
impl From<EscapeError> for DeserializeErrorKind
Source§fn from(source: EscapeError) -> Self
fn from(source: EscapeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for DeserializeErrorKind
impl From<ParseFloatError> for DeserializeErrorKind
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DeserializeErrorKind
impl From<ParseIntError> for DeserializeErrorKind
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeserializeErrorKind
impl !RefUnwindSafe for DeserializeErrorKind
impl Send for DeserializeErrorKind
impl Sync for DeserializeErrorKind
impl Unpin for DeserializeErrorKind
impl !UnwindSafe for DeserializeErrorKind
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