Enum rapid_xml::de::DeserializeError [−][src]
pub enum DeserializeError {
Parsing(ParseError),
Decoding(DecodeError),
ParseInt(ParseIntegerError),
ParseFloat(ParseFloatError),
ParseBool(ParseBoolError),
NotOneCharacter,
UnexpectedEof,
ExpectedElement,
ExpectedText,
UnexpectedEndTag,
Custom(String),
}
Expand description
Error while parsing or deserializing
Variants
Parsing(ParseError)
Error from underlying parser
Tuple Fields of Parsing
0: ParseError
Decoding(DecodeError)
Error decoding string
Tuple Fields of Decoding
0: DecodeError
ParseInt(ParseIntegerError)
Error parsing integer
Tuple Fields of ParseInt
ParseFloat(ParseFloatError)
Error parsing floating point number
Tuple Fields of ParseFloat
ParseBool(ParseBoolError)
Error parsing bool
Tuple Fields of ParseBool
Error deserializing character - there was none or too many characters
EOF came too early.
Deserializer was expecting an element, but found something else
Deserializer was expecting text, but found none
Deserializer was not expecting end tag, but it came
Custom(String)
Custom error from Serde
Tuple Fields of Custom
0: String
Trait Implementations
Raised when there is general error when deserializing a type. Read more
Raised when a Deserialize
receives a type different from what it was
expecting. Read more
Raised when a Deserialize
receives a value of the right type but that
is wrong for some other reason. Read more
Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more
Raised when a Deserialize
enum type received a variant with an
unrecognized name. Read more
Raised when a Deserialize
struct type received a field with an
unrecognized name. Read more
Raised when a Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input. Read more
Raised when a Deserialize
struct type received more than one of the
same field. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.