Struct stripe::generated::checkout::payment_link::CreatePaymentLinkLineItemsAdjustableQuantity
source · pub struct CreatePaymentLinkLineItemsAdjustableQuantity {
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 the customer can purchase.
By default this value is 99. You can specify a value up to 999.
minimum: Option<i64>
The minimum quantity the customer can purchase.
By default this value is 0. If there is only one item in the cart then that item’s quantity cannot go down to 0.
Trait Implementations§
source§impl Clone for CreatePaymentLinkLineItemsAdjustableQuantity
impl Clone for CreatePaymentLinkLineItemsAdjustableQuantity
source§fn clone(&self) -> CreatePaymentLinkLineItemsAdjustableQuantity
fn clone(&self) -> CreatePaymentLinkLineItemsAdjustableQuantity
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 CreatePaymentLinkLineItemsAdjustableQuantity
impl Default for CreatePaymentLinkLineItemsAdjustableQuantity
source§fn default() -> CreatePaymentLinkLineItemsAdjustableQuantity
fn default() -> CreatePaymentLinkLineItemsAdjustableQuantity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePaymentLinkLineItemsAdjustableQuantity
impl<'de> Deserialize<'de> for CreatePaymentLinkLineItemsAdjustableQuantity
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 CreatePaymentLinkLineItemsAdjustableQuantity
impl Send for CreatePaymentLinkLineItemsAdjustableQuantity
impl Sync for CreatePaymentLinkLineItemsAdjustableQuantity
impl Unpin for CreatePaymentLinkLineItemsAdjustableQuantity
impl UnwindSafe for CreatePaymentLinkLineItemsAdjustableQuantity
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