pub struct PaymentLinksResourceOptionalItemAdjustableQuantity {
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 of this item the customer can purchase. By default this value is 99.
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.
Trait Implementations§
Source§impl Clone for PaymentLinksResourceOptionalItemAdjustableQuantity
impl Clone for PaymentLinksResourceOptionalItemAdjustableQuantity
Source§fn clone(&self) -> PaymentLinksResourceOptionalItemAdjustableQuantity
fn clone(&self) -> PaymentLinksResourceOptionalItemAdjustableQuantity
Returns a duplicate 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 FromValueOpt for PaymentLinksResourceOptionalItemAdjustableQuantity
impl FromValueOpt for PaymentLinksResourceOptionalItemAdjustableQuantity
fn from_value(v: Value) -> Option<Self>
impl Copy for PaymentLinksResourceOptionalItemAdjustableQuantity
Auto Trait Implementations§
impl Freeze for PaymentLinksResourceOptionalItemAdjustableQuantity
impl RefUnwindSafe for PaymentLinksResourceOptionalItemAdjustableQuantity
impl Send for PaymentLinksResourceOptionalItemAdjustableQuantity
impl Sync for PaymentLinksResourceOptionalItemAdjustableQuantity
impl Unpin for PaymentLinksResourceOptionalItemAdjustableQuantity
impl UnwindSafe for PaymentLinksResourceOptionalItemAdjustableQuantity
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