pub struct TinValidator {
pub allow_formatted: bool,
pub strict_ssn: bool,
}Expand description
TIN validator with configurable behavior.
Fields§
§allow_formatted: boolAllow formatted input (with dashes/spaces)
strict_ssn: boolStrict SSN validation (reject all-same-digit SSNs)
Implementations§
Trait Implementations§
Source§impl Clone for TinValidator
impl Clone for TinValidator
Source§fn clone(&self) -> TinValidator
fn clone(&self) -> TinValidator
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 moreimpl Copy for TinValidator
Source§impl Debug for TinValidator
impl Debug for TinValidator
Auto Trait Implementations§
impl Freeze for TinValidator
impl RefUnwindSafe for TinValidator
impl Send for TinValidator
impl Sync for TinValidator
impl Unpin for TinValidator
impl UnsafeUnpin for TinValidator
impl UnwindSafe for TinValidator
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