pub struct MRZCountryPattern {
pub country_code: &'static str,
pub id_prefix: &'static str,
pub document_number_pattern: Regex,
pub document_number_start_index: usize,
}Expand description
Pattern information for a specific country to help extract document numbers from MRZ first-line content.
Fields§
§country_code: &'static str§id_prefix: &'static str§document_number_pattern: Regex§document_number_start_index: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for MRZCountryPattern
impl RefUnwindSafe for MRZCountryPattern
impl Send for MRZCountryPattern
impl Sync for MRZCountryPattern
impl Unpin for MRZCountryPattern
impl UnsafeUnpin for MRZCountryPattern
impl UnwindSafe for MRZCountryPattern
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