Struct stripe::CreatePriceCustomUnitAmount
source · pub struct CreatePriceCustomUnitAmount {
pub enabled: bool,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub preset: Option<i64>,
}Fields§
§enabled: boolPass 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 CreatePriceCustomUnitAmount
impl Clone for CreatePriceCustomUnitAmount
source§fn clone(&self) -> CreatePriceCustomUnitAmount
fn clone(&self) -> CreatePriceCustomUnitAmount
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 Debug for CreatePriceCustomUnitAmount
impl Debug for CreatePriceCustomUnitAmount
source§impl Default for CreatePriceCustomUnitAmount
impl Default for CreatePriceCustomUnitAmount
source§fn default() -> CreatePriceCustomUnitAmount
fn default() -> CreatePriceCustomUnitAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePriceCustomUnitAmount
impl<'de> Deserialize<'de> for CreatePriceCustomUnitAmount
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