pub struct CreateCheckoutSessionLineItemsAdjustableQuantity {
pub enabled: bool,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
}Expand description
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
Fields§
§enabled: boolSet to true if the quantity can be adjusted to any non-negative integer.
maximum: Option<i64>The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
minimum: Option<i64>The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Clone for CreateCheckoutSessionLineItemsAdjustableQuantity
Source§fn clone(&self) -> CreateCheckoutSessionLineItemsAdjustableQuantity
fn clone(&self) -> CreateCheckoutSessionLineItemsAdjustableQuantity
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 CreateCheckoutSessionLineItemsAdjustableQuantity
impl Eq for CreateCheckoutSessionLineItemsAdjustableQuantity
impl StructuralPartialEq for CreateCheckoutSessionLineItemsAdjustableQuantity
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionLineItemsAdjustableQuantity
impl RefUnwindSafe for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Send for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Sync for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Unpin for CreateCheckoutSessionLineItemsAdjustableQuantity
impl UnsafeUnpin for CreateCheckoutSessionLineItemsAdjustableQuantity
impl UnwindSafe for CreateCheckoutSessionLineItemsAdjustableQuantity
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