#[non_exhaustive]pub enum JsonErrorKind {
Show 17 variants
UnexpectedEnd,
UnexpectedByte(u8),
UnexpectedToken(&'static str),
InvalidEscape,
ControlCharacterInString,
InvalidUtf8,
InvalidNumber,
SerializationFailure,
DeserializationFailure,
TrailingValue,
InputBufferLimitExceeded(usize),
EmptyPath,
MissingRoot,
UnsupportedJsonPath(&'static str),
UnsupportedRewrite(&'static str),
InvalidJsonPath(&'static str),
CaptureLimitExceeded(usize),
}Expand description
Reason for a JSON failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnexpectedEnd
Input ended before a complete JSON token or document was available.
UnexpectedByte(u8)
A byte is not valid at the current position.
UnexpectedToken(&'static str)
A token appeared where the JSON grammar does not allow it.
InvalidEscape
A string literal contains an invalid escape sequence.
ControlCharacterInString
A string literal contains a control character.
InvalidUtf8
A string literal is not valid UTF-8.
InvalidNumber
A number literal does not follow the JSON number grammar.
SerializationFailure
A JSON value could not be serialized.
DeserializationFailure
A JSON value could not be deserialized.
TrailingValue
More than one top-level JSON value was found.
InputBufferLimitExceeded(usize)
Buffered input exceeded the configured tokenizer limit.
EmptyPath
A JSONPath expression was empty.
MissingRoot
A JSONPath expression did not start with $.
UnsupportedJsonPath(&'static str)
A JSONPath expression contains a feature not implemented yet.
UnsupportedRewrite(&'static str)
A JSON rewrite operation is not supported yet.
InvalidJsonPath(&'static str)
A JSONPath expression contains malformed syntax.
CaptureLimitExceeded(usize)
A selected JSON value exceeded the configured capture limit.
Trait Implementations§
Source§impl Clone for JsonErrorKind
impl Clone for JsonErrorKind
Source§fn clone(&self) -> JsonErrorKind
fn clone(&self) -> JsonErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JsonErrorKind
impl Debug for JsonErrorKind
impl Eq for JsonErrorKind
Source§impl PartialEq for JsonErrorKind
impl PartialEq for JsonErrorKind
Source§fn eq(&self, other: &JsonErrorKind) -> bool
fn eq(&self, other: &JsonErrorKind) -> bool
self and other values to be equal, and is used by ==.