Enum json_deserializer::Error
source · pub enum Error {
Show 15 variants
NumberWithTwoPeriods,
InvalidUtf8,
InvalidEscaped(u8),
InvalidHex(u8),
InvalidLoneLeadingSurrogateInHexEscape(u16),
InvalidSurrogateInHexEscape(u16),
UnexpectedEndOfHexEscape,
KeyWithoutDoubleColon,
InvalidToken(u8),
MissingComma(u8),
InvalidStringToken(u8),
InvalidNullToken([u8; 4]),
InvalidFalseToken([u8; 5]),
InvalidTrueToken([u8; 4]),
InvalidEOF,
}
Expand description
List of possible errors
Variants§
NumberWithTwoPeriods
todo
InvalidUtf8
todo
InvalidEscaped(u8)
todo
InvalidHex(u8)
todo
InvalidLoneLeadingSurrogateInHexEscape(u16)
Invalid surrogate
InvalidSurrogateInHexEscape(u16)
Invalid surrogate pair
UnexpectedEndOfHexEscape
When a surrogate misses the pair
KeyWithoutDoubleColon
todo
InvalidToken(u8)
todo
MissingComma(u8)
todo
InvalidStringToken(u8)
todo
InvalidNullToken([u8; 4])
todo
InvalidFalseToken([u8; 5])
When an invalid token is found while trying to parse “false”
InvalidTrueToken([u8; 4])
When an invalid token is found while trying to parse “true”
InvalidEOF
todo