pub enum ErrorTolerance {
StopOnFirst,
MaxErrors(usize),
CollectAll,
SkipInvalidItems,
}Expand description
Error tolerance strategy for partial parsing
Variants§
StopOnFirst
Stop on the first error encountered
MaxErrors(usize)
Collect up to N errors before stopping
CollectAll
Collect all errors and continue parsing
SkipInvalidItems
Skip invalid items in arrays/objects and continue
Trait Implementations§
Source§impl Clone for ErrorTolerance
impl Clone for ErrorTolerance
Source§fn clone(&self) -> ErrorTolerance
fn clone(&self) -> ErrorTolerance
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 ErrorTolerance
impl Debug for ErrorTolerance
Source§impl Default for ErrorTolerance
impl Default for ErrorTolerance
Source§fn default() -> ErrorTolerance
fn default() -> ErrorTolerance
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorTolerance
impl PartialEq for ErrorTolerance
impl Copy for ErrorTolerance
impl Eq for ErrorTolerance
impl StructuralPartialEq for ErrorTolerance
Auto Trait Implementations§
impl Freeze for ErrorTolerance
impl RefUnwindSafe for ErrorTolerance
impl Send for ErrorTolerance
impl Sync for ErrorTolerance
impl Unpin for ErrorTolerance
impl UnwindSafe for ErrorTolerance
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