pub struct Purchase {
pub sku: String,
pub amount: String,
pub iso: String,
pub count: Option<f32>,
}
Fields§
§sku: String
The unique identifier of the purchased item.
amount: String
The amount, in USD, spent purchasing the item.
iso: String
The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount.
count: Option<f32>
Implementations§
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
impl StructuralPartialEq for Purchase
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