pub struct PriceTier {
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<i64>,
}
Fields§
§flat_amount: Option<i64>
Price for the entire tier.
flat_amount_decimal: Option<String>
Same as flat_amount
, but contains a decimal value with at most 12 decimal places.
unit_amount: Option<i64>
Per unit price for units relevant to the tier.
unit_amount_decimal: Option<String>
Same as unit_amount
, but contains a decimal value with at most 12 decimal places.
up_to: Option<i64>
Up to and including to this quantity will be contained in the tier.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PriceTier
impl<'de> Deserialize<'de> for PriceTier
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 PriceTier
impl RefUnwindSafe for PriceTier
impl Send for PriceTier
impl Sync for PriceTier
impl Unpin for PriceTier
impl UnwindSafe for PriceTier
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