pub struct CreateCheckoutSessionOptionalItemsAdjustableQuantity {
pub enabled: bool,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
}Expand description
When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
Fields§
§enabled: boolSet 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.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl Clone for CreateCheckoutSessionOptionalItemsAdjustableQuantity
Source§fn clone(&self) -> CreateCheckoutSessionOptionalItemsAdjustableQuantity
fn clone(&self) -> CreateCheckoutSessionOptionalItemsAdjustableQuantity
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 Copy for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl Eq for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl StructuralPartialEq for CreateCheckoutSessionOptionalItemsAdjustableQuantity
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl RefUnwindSafe for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl Send for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl Sync for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl Unpin for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl UnsafeUnpin for CreateCheckoutSessionOptionalItemsAdjustableQuantity
impl UnwindSafe for CreateCheckoutSessionOptionalItemsAdjustableQuantity
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