pub struct PlanTier {
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 PlanTier
impl<'de> Deserialize<'de> for PlanTier
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 PlanTier
impl RefUnwindSafe for PlanTier
impl Send for PlanTier
impl Sync for PlanTier
impl Unpin for PlanTier
impl UnwindSafe for PlanTier
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