Struct stripe::generated::checkout::payment_link::UpdatePaymentLinkLineItemsAdjustableQuantity
source · pub struct UpdatePaymentLinkLineItemsAdjustableQuantity {
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 UpdatePaymentLinkLineItemsAdjustableQuantity
impl Clone for UpdatePaymentLinkLineItemsAdjustableQuantity
source§fn clone(&self) -> UpdatePaymentLinkLineItemsAdjustableQuantity
fn clone(&self) -> UpdatePaymentLinkLineItemsAdjustableQuantity
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 UpdatePaymentLinkLineItemsAdjustableQuantity
impl Default for UpdatePaymentLinkLineItemsAdjustableQuantity
source§fn default() -> UpdatePaymentLinkLineItemsAdjustableQuantity
fn default() -> UpdatePaymentLinkLineItemsAdjustableQuantity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatePaymentLinkLineItemsAdjustableQuantity
impl<'de> Deserialize<'de> for UpdatePaymentLinkLineItemsAdjustableQuantity
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 UpdatePaymentLinkLineItemsAdjustableQuantity
impl Send for UpdatePaymentLinkLineItemsAdjustableQuantity
impl Sync for UpdatePaymentLinkLineItemsAdjustableQuantity
impl Unpin for UpdatePaymentLinkLineItemsAdjustableQuantity
impl UnwindSafe for UpdatePaymentLinkLineItemsAdjustableQuantity
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