pub struct Purchase {
pub id: u64,
pub created_at: DateTime<Utc>,
pub game_id: u32,
pub sale_rate: u64,
pub donation: bool,
pub price: String,
pub source: String,
pub email: String,
}Expand description
A representation of a purchase made on itch.io.
Fields§
§id: u64§created_at: DateTime<Utc>§game_id: u32§sale_rate: u64§donation: boolIs true for any purchase that doesn’t have a download key associated with it, currently this only applies to web games
price: String§source: String§email: StringTrait 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
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