pub struct TierRate {
pub start_usage_amount: Option<f64>,
pub unit_price: Option<Money>,
}Expand description
The price rate indicating starting usage and its corresponding price.
This type is not used in any activity, and only used as part of another schema.
Fields§
§start_usage_amount: Option<f64>Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
unit_price: Option<Money>The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TierRate
impl<'de> Deserialize<'de> for TierRate
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
impl Part for TierRate
Auto Trait Implementations§
impl Freeze for TierRate
impl RefUnwindSafe for TierRate
impl Send for TierRate
impl Sync for TierRate
impl Unpin for TierRate
impl UnwindSafe for TierRate
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