pub enum JsonParseFailure {
Incomplete,
TooManyFields,
InvalidStructure,
InvalidStringField,
InvalidNumericField,
InvalidBooleanField,
}Expand description
the various reasons parsing JSON can fail
Variants§
Incomplete
there was no error, but the data slice is incomplete
TooManyFields
there was no error, but there were more fields than the provided field buffer could hold
InvalidStructure
there was an error in the JSON structure of the data
InvalidStringField
an invalid JSON string was encountered
InvalidNumericField
an invalid JSON number was encountered
InvalidBooleanField
an invalid JSON boolean was encountered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonParseFailure
impl RefUnwindSafe for JsonParseFailure
impl Send for JsonParseFailure
impl Sync for JsonParseFailure
impl Unpin for JsonParseFailure
impl UnwindSafe for JsonParseFailure
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