pub struct Addon {
pub id: String,
pub name: String,
pub price: f64,
pub with_premium: f64,
pub currency: String,
pub interval: String,
}Expand description
Something an app sells on top of Premium, on the same subscription. Prices
are in dollars per interval.
Fields§
§id: String§name: String§price: f64What it costs without Premium yet, since buying it adds Premium too.
currency: String§interval: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Addon
impl<'de> Deserialize<'de> for Addon
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 Forget for Addon
impl Freeze for Addon
impl RefUnwindSafe for Addon
impl Send for Addon
impl Sync for Addon
impl Unpin for Addon
impl UnsafeUnpin for Addon
impl UnwindSafe for Addon
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