Struct stripe::CreatePriceTiers
source · pub struct CreatePriceTiers {
pub flat_amount: Option<i64>,
pub flat_amount_decimal: Option<String>,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
pub up_to: Option<UpTo>,
}
Fields§
§flat_amount: Option<i64>
The flat billing amount for an entire tier, regardless of the number of units in the tier.
flat_amount_decimal: Option<String>
Same as flat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.
Only one of flat_amount
and flat_amount_decimal
can be set.
unit_amount: Option<i64>
The per unit billing amount for each individual unit for which this tier applies.
unit_amount_decimal: Option<String>
Same as unit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.
Only one of unit_amount
and unit_amount_decimal
can be set.
up_to: Option<UpTo>
Specifies the upper bound of this tier.
The lower bound of a tier is the upper bound of the previous tier adding one.
Use inf
to define a fallback tier.
Trait Implementations§
source§impl Clone for CreatePriceTiers
impl Clone for CreatePriceTiers
source§fn clone(&self) -> CreatePriceTiers
fn clone(&self) -> CreatePriceTiers
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 CreatePriceTiers
impl Debug for CreatePriceTiers
source§impl Default for CreatePriceTiers
impl Default for CreatePriceTiers
source§fn default() -> CreatePriceTiers
fn default() -> CreatePriceTiers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePriceTiers
impl<'de> Deserialize<'de> for CreatePriceTiers
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 CreatePriceTiers
impl Send for CreatePriceTiers
impl Sync for CreatePriceTiers
impl Unpin for CreatePriceTiers
impl UnwindSafe for CreatePriceTiers
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