pub enum JsonError<'bytes, B: BytesLike<'bytes>, S: Stack> {
InternalError,
BytesError(B::Error),
StackError(S::Error),
ReusedDeserializer,
InvalidKey,
InvalidKeyValueDelimiter,
InvalidValue,
TrailingComma,
MismatchedDelimiter,
TypeError,
}
Expand description
An error incurred when deserializing.
Variants§
InternalError
An unexpected state was reached during deserialization.
BytesError(B::Error)
An error from the bytes.
StackError(S::Error)
An error from the stack.
ReusedDeserializer
The deserializer was reused.
InvalidKey
The JSON had an invalid key.
InvalidKeyValueDelimiter
The JSON had an invalid delimiter between the key and value (:
expected).
InvalidValue
The JSON had an invalid value.
TrailingComma
The JSON had a trailing comma.
MismatchedDelimiter
The JSON had mismatched delimiters between the open and close of the structure.
TypeError
Operation could not be performed given the value’s type.
Trait Implementations§
Source§impl<'bytes, B: Debug + BytesLike<'bytes>, S: Debug + Stack> Debug for JsonError<'bytes, B, S>
impl<'bytes, B: Debug + BytesLike<'bytes>, S: Debug + Stack> Debug for JsonError<'bytes, B, S>
impl<'bytes, B: BytesLike<'bytes>, S: Stack> Copy for JsonError<'bytes, B, S>
Auto Trait Implementations§
impl<'bytes, B, S> Freeze for JsonError<'bytes, B, S>
impl<'bytes, B, S> RefUnwindSafe for JsonError<'bytes, B, S>
impl<'bytes, B, S> Send for JsonError<'bytes, B, S>
impl<'bytes, B, S> Sync for JsonError<'bytes, B, S>
impl<'bytes, B, S> Unpin for JsonError<'bytes, B, S>
impl<'bytes, B, S> UnwindSafe for JsonError<'bytes, B, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more