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