pub struct RepairResult {
pub repaired: Value,
pub corrections: Vec<Correction>,
pub skipped: Vec<SkippedCorrection>,
}Expand description
Result of a repair operation
Fields§
§repaired: ValueThe repaired JSON value
corrections: Vec<Correction>List of corrections made
skipped: Vec<SkippedCorrection>List of corrections that were found but skipped (collision safety)
Implementations§
Source§impl RepairResult
impl RepairResult
Sourcepub fn has_corrections(&self) -> bool
pub fn has_corrections(&self) -> bool
Check if any corrections were made
Sourcepub fn correction_count(&self) -> usize
pub fn correction_count(&self) -> usize
Get the number of corrections made
Sourcepub fn has_skipped(&self) -> bool
pub fn has_skipped(&self) -> bool
Check if any corrections were skipped
Trait Implementations§
Source§impl Clone for RepairResult
impl Clone for RepairResult
Source§fn clone(&self) -> RepairResult
fn clone(&self) -> RepairResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepairResult
impl RefUnwindSafe for RepairResult
impl Send for RepairResult
impl Sync for RepairResult
impl Unpin for RepairResult
impl UnsafeUnpin for RepairResult
impl UnwindSafe for RepairResult
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