pub struct CreditPack {
pub id: String,
pub name: Option<String>,
pub price_usd: f64,
pub credit_ticks: i64,
pub description: Option<String>,
}Expand description
A credit pack available for purchase.
Fields§
§id: StringUnique pack identifier.
name: Option<String>Display name (e.g. “Starter Pack”).
price_usd: f64Price in USD.
credit_ticks: i64Number of credit ticks included.
description: Option<String>Description.
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 · 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