pub struct CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount {
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 CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl Clone for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
source§fn clone(&self) -> CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
fn clone(&self) -> CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
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 CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl Default for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
source§fn default() -> CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
fn default() -> CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl<'de> Deserialize<'de> for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
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