pub struct CreditPack {
pub id: String,
pub label: String,
pub amount_usd: f64,
pub ticks: i64,
pub description: Option<String>,
pub popular: Option<bool>,
}Expand description
A credit pack available for purchase.
Fields§
§id: StringUnique pack identifier.
label: StringDisplay label (e.g. “$5 Starter”).
amount_usd: f64Price in USD.
ticks: i64Number of credit ticks included.
description: Option<String>Description.
popular: Option<bool>Whether this is the popular/recommended pack.
Trait Implementations§
Source§impl Clone for CreditPack
impl Clone for CreditPack
Source§fn clone(&self) -> CreditPack
fn clone(&self) -> CreditPack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreditPack
impl Debug for CreditPack
Source§impl<'de> Deserialize<'de> for CreditPack
impl<'de> Deserialize<'de> for CreditPack
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 CreditPack
impl RefUnwindSafe for CreditPack
impl Send for CreditPack
impl Sync for CreditPack
impl Unpin for CreditPack
impl UnsafeUnpin for CreditPack
impl UnwindSafe for CreditPack
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