pub struct Code {
pub name: &'static str,
pub size: u8,
}Expand description
The security-code metadata for a card brand (e.g. CVV, size 3).
Fields§
§name: &'static strThe brand’s name for its security code, e.g. CVV, CVC, CID.
size: u8The expected number of digits in the security code.
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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