pub type Error = DeserializeError<XmlError>;Expand description
Error type for Atom parsing
Aliased Type§
pub enum Error {
Parser(XmlError),
Reflect {
error: ReflectError,
span: Option<Span>,
},
TypeMismatch {
expected: &'static str,
got: String,
},
Unsupported(String),
UnknownField(String),
CannotBorrow {
message: String,
},
MissingField {
field: &'static str,
type_name: &'static str,
},
UnexpectedEof {
expected: &'static str,
},
}Variants§
Parser(XmlError)
Error emitted by the format-specific parser.
Reflect
Reflection error from Partial operations.
Fields
§
error: ReflectErrorThe underlying reflection error.
TypeMismatch
Type mismatch during deserialization.
Fields
Unsupported(String)
Unsupported type or operation.
UnknownField(String)
Unknown field encountered when deny_unknown_fields is set.
CannotBorrow
Cannot borrow string from input (e.g., escaped string into &str).
MissingField
Required field missing from input.
Fields
UnexpectedEof
Unexpected end of input.