pub struct SkippedCorrection {
pub original: String,
pub candidate: String,
pub similarity: f64,
pub field_path: String,
pub reason: SkipReason,
}Expand description
A correction that was found but not applied.
Recorded when a typo key resolves to a candidate field name but the
candidate already exists in the object (either as a literal key or
because an earlier typo key won the rename). See
repair_fields_with_list for the collision policy.
Fields§
§original: StringThe original key that was left unchanged
candidate: StringThe candidate it would have been renamed to
similarity: f64Similarity score (0.0 to 1.0)
field_path: StringJSON path to the field (e.g., “$.targt”)
reason: SkipReasonWhy the correction was skipped
Trait Implementations§
Source§impl Clone for SkippedCorrection
impl Clone for SkippedCorrection
Source§fn clone(&self) -> SkippedCorrection
fn clone(&self) -> SkippedCorrection
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 moreSource§impl Debug for SkippedCorrection
impl Debug for SkippedCorrection
Source§impl PartialEq for SkippedCorrection
impl PartialEq for SkippedCorrection
impl StructuralPartialEq for SkippedCorrection
Auto Trait Implementations§
impl Freeze for SkippedCorrection
impl RefUnwindSafe for SkippedCorrection
impl Send for SkippedCorrection
impl Sync for SkippedCorrection
impl Unpin for SkippedCorrection
impl UnsafeUnpin for SkippedCorrection
impl UnwindSafe for SkippedCorrection
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