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>,
path: Option<Path>,
},
TypeMismatch {
expected: &'static str,
got: String,
span: Option<Span>,
path: Option<Path>,
},
Unsupported(String),
UnknownField {
field: String,
span: Option<Span>,
path: Option<Path>,
},
CannotBorrow {
message: String,
},
MissingField {
field: &'static str,
type_name: &'static str,
span: Option<Span>,
path: Option<Path>,
},
ExpectedScalarGotStruct {
expected_shape: &'static Shape,
got_container: ContainerKind,
span: Option<Span>,
path: Option<Path>,
},
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
Unknown field encountered when deny_unknown_fields is set.
Fields
CannotBorrow
Cannot borrow string from input (e.g., escaped string into &str).
MissingField
Required field missing from input.
Fields
ExpectedScalarGotStruct
Expected a scalar value but got a struct/object.
This typically happens when a format-specific mapping expects a scalar
(like a KDL property name=value) but receives a child node instead
(like KDL node with arguments name "value").
Fields
expected_shape: &'static ShapeThe shape that was expected (provides access to type info and attributes).
got_container: ContainerKindThe container kind that was received (Object, Array, Element).
UnexpectedEof
Unexpected end of input.