pub struct PaymentMethods {
pub excluded_payment_methods: Vec<ExcludedPaymentMethod>,
pub excluded_payment_types: Vec<ExcludedPaymentType>,
pub installments: Option<i64>,
}
Fields§
§excluded_payment_methods: Vec<ExcludedPaymentMethod>
Method that excludes specific credit and debit card brands, such as Visa, Mastercard, American Express, among others. Note that these are DEBIT/CREDIT CARD brands.
excluded_payment_types: Vec<ExcludedPaymentType>
Method that excludes undesired payment methods for your operation, such as credit card, ticket, among others. Note that these are PAYMENT TYPES.
installments: Option<i64>
Method that defines the maximum number of installments to be offered.
Trait Implementations§
Source§impl Clone for PaymentMethods
impl Clone for PaymentMethods
Source§fn clone(&self) -> PaymentMethods
fn clone(&self) -> PaymentMethods
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 PaymentMethods
impl Debug for PaymentMethods
Source§impl Default for PaymentMethods
impl Default for PaymentMethods
Source§fn default() -> PaymentMethods
fn default() -> PaymentMethods
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentMethods
impl<'de> Deserialize<'de> for PaymentMethods
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 PartialEq for PaymentMethods
impl PartialEq for PaymentMethods
Source§impl Serialize for PaymentMethods
impl Serialize for PaymentMethods
impl StructuralPartialEq for PaymentMethods
Auto Trait Implementations§
impl Freeze for PaymentMethods
impl RefUnwindSafe for PaymentMethods
impl Send for PaymentMethods
impl Sync for PaymentMethods
impl Unpin for PaymentMethods
impl UnwindSafe for PaymentMethods
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