pub struct RepairResult {
pub repaired: Value,
pub corrections: Vec<Correction>,
}Expand description
Result of a repair operation
Fields§
§repaired: ValueThe repaired JSON value
corrections: Vec<Correction>List of corrections made
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
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 · 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 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