pub struct PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity {
pub enabled: bool,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
}
Fields§
§enabled: bool
Set to true if the quantity can be adjusted to any non-negative integer.
maximum: Option<i64>
The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
minimum: Option<i64>
The minimum quantity of this item the customer must purchase, if they choose to purchase it.
Because this item is optional, the customer will always be able to remove it from their order, even if the minimum
configured here is greater than 0.
By default this value is 0.
Trait Implementations§
Source§impl Clone for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl Clone for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
Source§fn clone(&self) -> PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
fn clone(&self) -> PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
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 FromValueOpt for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl FromValueOpt for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
fn from_value(v: Value) -> Option<Self>
impl Copy for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
Auto Trait Implementations§
impl Freeze for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl RefUnwindSafe for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl Send for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl Sync for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl Unpin for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
impl UnwindSafe for PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity
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