pub struct LineItem {
pub listing_price: Option<Money>,
pub one_time_purchase_details: Option<OneTimePurchaseDetails>,
pub paid_app_details: Option<PaidAppDetails>,
pub product_id: Option<String>,
pub product_title: Option<String>,
pub subscription_details: Option<SubscriptionDetails>,
pub tax: Option<Money>,
pub total: Option<Money>,
}Expand description
Details of a line item.
This type is not used in any activity, and only used as part of another schema.
Fields§
§listing_price: Option<Money>Item’s listed price on Play Store, this may or may not include tax. Excludes any discounts or promotions.
one_time_purchase_details: Option<OneTimePurchaseDetails>Details of a one-time purchase.
paid_app_details: Option<PaidAppDetails>Details of a paid app purchase.
product_id: Option<String>The purchased product ID or in-app SKU (for example, ‘monthly001’ or ‘com.some.thing.inapp1’).
product_title: Option<String>Developer-specified name of the product. Displayed in buyer’s locale. Example: coins, monthly subscription, etc.
subscription_details: Option<SubscriptionDetails>Details of a subscription purchase.
tax: Option<Money>The tax paid for this line item.
total: Option<Money>The total amount paid by the user for this line item, taking into account discounts and tax.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineItem
impl<'de> Deserialize<'de> for LineItem
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 Part for LineItem
Auto Trait Implementations§
impl Freeze for LineItem
impl RefUnwindSafe for LineItem
impl Send for LineItem
impl Sync for LineItem
impl Unpin for LineItem
impl UnwindSafe for LineItem
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