pub struct GoPlan {
pub label: String,
pub price_usd: f64,
pub allowance_by_model: BTreeMap<String, f64>,
}Expand description
One Go plan: a price plus a monthly dollar limit per model id.
Fields§
§label: String§price_usd: f64§allowance_by_model: BTreeMap<String, f64>model id -> monthly dollar limit; a missing id is free/unlimited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GoPlan
impl<'de> Deserialize<'de> for GoPlan
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 GoPlan
impl RefUnwindSafe for GoPlan
impl Send for GoPlan
impl Sync for GoPlan
impl Unpin for GoPlan
impl UnsafeUnpin for GoPlan
impl UnwindSafe for GoPlan
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