Enum card_validate::Type
source · #[non_exhaustive]pub enum Type {
VisaElectron,
Maestro,
Forbrugsforeningen,
Dankort,
Visa,
MIR,
MasterCard,
Amex,
DinersClub,
Discover,
UnionPay,
JCB,
}
Expand description
Card type. Maps recognized cards, and validates their pattern and length.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VisaElectron
Maestro
Forbrugsforeningen
Dankort
Visa
MIR
MasterCard
Amex
DinersClub
Discover
UnionPay
JCB
Implementations§
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
impl Copy for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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