pub struct Correction {
pub original: String,
pub corrected: String,
pub similarity: f64,
pub field_path: String,
}Expand description
A single correction made during repair
Fields§
§original: StringThe original (incorrect) value
corrected: StringThe corrected value
similarity: f64Similarity score (0.0 to 1.0)
field_path: StringJSON path to the corrected field (e.g., “$.type”, “$.target”)
Implementations§
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§fn clone(&self) -> Correction
fn clone(&self) -> Correction
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 Correction
impl Debug for Correction
Source§impl PartialEq for Correction
impl PartialEq for Correction
impl StructuralPartialEq for Correction
Auto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnwindSafe for Correction
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