pub struct Payment;Trait Implementations§
Source§impl PaymentTrait<'_> for Payment
impl PaymentTrait<'_> for Payment
fn card_vendors() -> Vec<&'a str>
Source§fn card_params() -> HashMap<&'a str, Vec<&'a str>>
fn card_params() -> HashMap<&'a str, Vec<&'a str>>
List of card brand masks for generating valid credit card numbers
fn iban_formats() -> HashMap<&'a str, Vec<(char, u8)>>
Source§fn credit_card_type() -> String
fn credit_card_type() -> String
Returns a credit card vendor name
Source§fn credit_card_number(
credit_card_type: Option<&str>,
formatted: Option<bool>,
separator: Option<char>,
) -> String
fn credit_card_number( credit_card_type: Option<&str>, formatted: Option<bool>, separator: Option<char>, ) -> String
Returns the String of a credit card number.
Source§fn credit_card_expiration_date(valid: Option<bool>) -> String
fn credit_card_expiration_date(valid: Option<bool>) -> String
Returns a credit card expiration date.
The expiration date is in the format MM/YY.
Auto Trait Implementations§
impl Freeze for Payment
impl RefUnwindSafe for Payment
impl Send for Payment
impl Sync for Payment
impl Unpin for Payment
impl UnwindSafe for Payment
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