pub struct CorrectionSuggestion {
pub corrected_word: String,
pub correction_confidence: f64,
pub correction_type: CorrectionType,
pub explanation: Option<String>,
}Expand description
A suggested correction for an OCR error
Fields§
§corrected_word: StringThe corrected word
correction_confidence: f64Confidence in this correction (0.0 to 1.0)
correction_type: CorrectionTypeType of correction applied
explanation: Option<String>Explanation of why this correction was suggested
Trait Implementations§
Source§impl Clone for CorrectionSuggestion
impl Clone for CorrectionSuggestion
Source§fn clone(&self) -> CorrectionSuggestion
fn clone(&self) -> CorrectionSuggestion
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 CorrectionSuggestion
impl RefUnwindSafe for CorrectionSuggestion
impl Send for CorrectionSuggestion
impl Sync for CorrectionSuggestion
impl Unpin for CorrectionSuggestion
impl UnsafeUnpin for CorrectionSuggestion
impl UnwindSafe for CorrectionSuggestion
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