pub struct UpdatePriceCurrencyOptionsCustomUnitAmount {
pub enabled: bool,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub preset: Option<i64>,
}
Fields§
§enabled: bool
Pass in true
to enable custom_unit_amount
, otherwise omit custom_unit_amount
.
maximum: Option<i64>
The maximum unit amount the customer can specify for this item.
minimum: Option<i64>
The minimum unit amount the customer can specify for this item.
Must be at least the minimum charge amount.
preset: Option<i64>
The starting unit amount which can be updated by the customer.
Trait Implementations§
source§impl Clone for UpdatePriceCurrencyOptionsCustomUnitAmount
impl Clone for UpdatePriceCurrencyOptionsCustomUnitAmount
source§fn clone(&self) -> UpdatePriceCurrencyOptionsCustomUnitAmount
fn clone(&self) -> UpdatePriceCurrencyOptionsCustomUnitAmount
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 UpdatePriceCurrencyOptionsCustomUnitAmount
impl Default for UpdatePriceCurrencyOptionsCustomUnitAmount
source§fn default() -> UpdatePriceCurrencyOptionsCustomUnitAmount
fn default() -> UpdatePriceCurrencyOptionsCustomUnitAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatePriceCurrencyOptionsCustomUnitAmount
impl<'de> Deserialize<'de> for UpdatePriceCurrencyOptionsCustomUnitAmount
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 UpdatePriceCurrencyOptionsCustomUnitAmount
impl Send for UpdatePriceCurrencyOptionsCustomUnitAmount
impl Sync for UpdatePriceCurrencyOptionsCustomUnitAmount
impl Unpin for UpdatePriceCurrencyOptionsCustomUnitAmount
impl UnwindSafe for UpdatePriceCurrencyOptionsCustomUnitAmount
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