Struct stripe::generated::core::product::CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
source · 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
Auto Trait Implementations§
impl Freeze for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl RefUnwindSafe for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl Send for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl Sync for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl Unpin for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
impl UnwindSafe for CreateProductDefaultPriceDataCurrencyOptionsCustomUnitAmount
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)