pub enum JsonParseFailure {
Incomplete,
FieldBufferTooSmall,
EscapeBufferTooSmall,
InvalidStructure,
InvalidStringField,
InvalidNumericField,
NumberParseError,
InvalidBooleanField,
InvalidNullField,
}Expand description
the various reasons parsing JSON can fail
Variants§
Incomplete
there was no error, but the data slice is incomplete
FieldBufferTooSmall
there was no error, but there were more fields than the provided field buffer could hold
EscapeBufferTooSmall
there was no error, but there were more fields than the provided string escape 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
NumberParseError
a valid JSON number was encountered but we failed to interpret it
InvalidBooleanField
an invalid JSON boolean was encountered
InvalidNullField
an invalid JSON null was encountered
Trait Implementations§
Source§impl Clone for JsonParseFailure
impl Clone for JsonParseFailure
Source§fn clone(&self) -> JsonParseFailure
fn clone(&self) -> JsonParseFailure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonParseFailure
impl Debug for JsonParseFailure
Source§impl PartialEq for JsonParseFailure
impl PartialEq for JsonParseFailure
impl Copy for JsonParseFailure
impl Eq for JsonParseFailure
impl StructuralPartialEq for JsonParseFailure
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