pub struct TextValidator { /* private fields */ }Expand description
Text validator for OCR results
Implementations§
Source§impl TextValidator
impl TextValidator
Sourcepub fn search_for_target(
&self,
text: &str,
target: &str,
) -> TextValidationResult
pub fn search_for_target( &self, text: &str, target: &str, ) -> TextValidationResult
Search for a specific target string in the text
Sourcepub fn validate_contract_text(&self, text: &str) -> TextValidationResult
pub fn validate_contract_text(&self, text: &str) -> TextValidationResult
Perform comprehensive validation of OCR text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextValidator
impl RefUnwindSafe for TextValidator
impl Send for TextValidator
impl Sync for TextValidator
impl Unpin for TextValidator
impl UnsafeUnpin for TextValidator
impl UnwindSafe for TextValidator
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