pub struct CreateCheckoutSessionLineItemsAdjustableQuantity {
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.
By default customers will be able to remove the line item by setting the quantity to 0.
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.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Clone for CreateCheckoutSessionLineItemsAdjustableQuantity
source§fn clone(&self) -> CreateCheckoutSessionLineItemsAdjustableQuantity
fn clone(&self) -> CreateCheckoutSessionLineItemsAdjustableQuantity
Returns a copy 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 Default for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Default for CreateCheckoutSessionLineItemsAdjustableQuantity
source§fn default() -> CreateCheckoutSessionLineItemsAdjustableQuantity
fn default() -> CreateCheckoutSessionLineItemsAdjustableQuantity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionLineItemsAdjustableQuantity
impl<'de> Deserialize<'de> for CreateCheckoutSessionLineItemsAdjustableQuantity
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
Auto Trait Implementations§
impl RefUnwindSafe for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Send for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Sync for CreateCheckoutSessionLineItemsAdjustableQuantity
impl Unpin 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