pub enum Purchase {
FFAPurchase {
unique_id: u64,
timestamp_epoch_millis: i64,
item_id: u32,
freeby_id: u64,
donor: u32,
},
SimplePurchase {
unique_id: u64,
timestamp_epoch_millis: i64,
item_id: u32,
consumer_id: u32,
},
SpecialPurchase {
unique_id: u64,
timestamp_epoch_millis: i64,
special_name: String,
specialcost: Option<u32>,
consumer_id: u32,
},
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Purchase
impl<'de> Deserialize<'de> for Purchase
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
Source§impl PurchaseFunctions for Purchase
impl PurchaseFunctions for Purchase
fn get_unique_id(&self) -> u64
fn get_special_set_price(&self) -> Option<u32>
fn has_unique_id(&self, other: u64) -> bool
fn has_user_id(&self) -> bool
fn get_user_id(&self) -> &u32
fn get_item_id(&self) -> &u32
fn get_timestamp(&self) -> &i64
fn has_item_id(&self) -> bool
fn is_special(&self) -> bool
Source§impl TypeScriptifyTrait for Purchase
impl TypeScriptifyTrait for Purchase
fn type_script_ify() -> String
Auto Trait Implementations§
impl Freeze for Purchase
impl RefUnwindSafe for Purchase
impl Send for Purchase
impl Sync for Purchase
impl Unpin for Purchase
impl UnwindSafe for Purchase
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