pub enum SsnError {
AreaZero,
Area666,
AreaReserved,
GroupZero,
SerialZero,
AllSameDigits,
}Expand description
SSN-specific validation errors.
Variants§
AreaZero
Area number is 000
Area666
Area number is 666
AreaReserved
Area number is 900-999 (reserved for ITINs)
GroupZero
Group number is 00
SerialZero
Serial number is 0000
AllSameDigits
All digits are the same
Trait Implementations§
impl Copy for SsnError
impl Eq for SsnError
impl StructuralPartialEq for SsnError
Auto Trait Implementations§
impl Freeze for SsnError
impl RefUnwindSafe for SsnError
impl Send for SsnError
impl Sync for SsnError
impl Unpin for SsnError
impl UnsafeUnpin for SsnError
impl UnwindSafe for SsnError
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