pub struct CreateCheckoutSessionPaymentMethodOptionsCardRestrictions {
pub brands_blocked: Option<Vec<CreateCheckoutSessionPaymentMethodOptionsCardRestrictionsBrandsBlocked>>,
}Expand description
Restrictions to apply to the card payment method.
For example, you can block specific card brands.
You can’t set this parameter if ui_mode is custom.
Fields§
§brands_blocked: Option<Vec<CreateCheckoutSessionPaymentMethodOptionsCardRestrictionsBrandsBlocked>>The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can’t complete the payment.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl Clone for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
Source§fn clone(&self) -> CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
fn clone(&self) -> CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl StructuralPartialEq for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl RefUnwindSafe for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl Send for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl Sync for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl Unpin for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl UnsafeUnpin for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
impl UnwindSafe for CreateCheckoutSessionPaymentMethodOptionsCardRestrictions
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