pub struct PaymentCard { /* private fields */ }Implementations§
Source§impl PaymentCard
impl PaymentCard
pub fn new() -> Self
pub fn set_card_holder_name<T: Into<String>>(&mut self, card_holder_name: T)
pub fn set_card_number<T: Into<String>>(&mut self, card_number: T)
pub fn set_expire_year<T: Into<String>>(&mut self, expire_year: T)
pub fn set_expire_month<T: Into<String>>(&mut self, expire_month: T)
pub fn set_cvc<T: Into<String>>(&mut self, cvc: T)
pub fn set_register_card<T: Into<u8>>(&mut self, register_card: T)
pub fn set_card_alias<T: Into<String>>(&mut self, card_alias: T)
pub fn set_card_token<T: Into<String>>(&mut self, card_token: T)
pub fn set_card_user_key<T: Into<String>>(&mut self, card_user_key: T)
pub fn card_holder_name(&self) -> Option<&String>
pub fn card_number(&self) -> Option<&String>
pub fn expire_year(&self) -> Option<&String>
pub fn expire_month(&self) -> Option<&String>
pub fn cvc(&self) -> Option<&String>
pub fn register_card(&self) -> Option<&u8>
pub fn card_alias(&self) -> Option<&String>
pub fn card_token(&self) -> Option<&String>
pub fn card_user_key(&self) -> Option<&String>
Trait Implementations§
Source§impl Clone for PaymentCard
impl Clone for PaymentCard
Source§fn clone(&self) -> PaymentCard
fn clone(&self) -> PaymentCard
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaymentCard
impl Debug for PaymentCard
Source§impl Default for PaymentCard
impl Default for PaymentCard
Source§fn default() -> PaymentCard
fn default() -> PaymentCard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentCardwhere
PaymentCard: Default,
impl<'de> Deserialize<'de> for PaymentCardwhere
PaymentCard: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PKISerialize for PaymentCard
impl PKISerialize for PaymentCard
Auto Trait Implementations§
impl Freeze for PaymentCard
impl RefUnwindSafe for PaymentCard
impl Send for PaymentCard
impl Sync for PaymentCard
impl Unpin for PaymentCard
impl UnwindSafe for PaymentCard
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