pub struct OneTimePurchaseDetails {
pub offer_id: Option<String>,
pub preorder_details: Option<PreorderDetails>,
pub purchase_option_id: Option<String>,
pub quantity: Option<i32>,
pub rental_details: Option<RentalDetails>,
}Expand description
Details of a one-time purchase.
This type is not used in any activity, and only used as part of another schema.
Fields§
§offer_id: Option<String>The offer ID of the one-time purchase offer.
preorder_details: Option<PreorderDetails>The details of a pre-order purchase. Only set if it is a pre-order purchase. Note that this field will be set even after pre-order is fulfilled.
purchase_option_id: Option<String>ID of the purchase option. This field is set for both purchase options and variant offers. For purchase options, this ID identifies the purchase option itself. For variant offers, this ID refers to the associated purchase option, and in conjunction with offer_id it identifies the variant offer.
quantity: Option<i32>The number of items purchased (for multi-quantity item purchases).
rental_details: Option<RentalDetails>The details of a rent purchase. Only set if it is a rent purchase.
Trait Implementations§
Source§impl Clone for OneTimePurchaseDetails
impl Clone for OneTimePurchaseDetails
Source§fn clone(&self) -> OneTimePurchaseDetails
fn clone(&self) -> OneTimePurchaseDetails
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 OneTimePurchaseDetails
impl Debug for OneTimePurchaseDetails
Source§impl Default for OneTimePurchaseDetails
impl Default for OneTimePurchaseDetails
Source§fn default() -> OneTimePurchaseDetails
fn default() -> OneTimePurchaseDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OneTimePurchaseDetails
impl<'de> Deserialize<'de> for OneTimePurchaseDetails
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 Serialize for OneTimePurchaseDetails
impl Serialize for OneTimePurchaseDetails
impl Part for OneTimePurchaseDetails
Auto Trait Implementations§
impl Freeze for OneTimePurchaseDetails
impl RefUnwindSafe for OneTimePurchaseDetails
impl Send for OneTimePurchaseDetails
impl Sync for OneTimePurchaseDetails
impl Unpin for OneTimePurchaseDetails
impl UnwindSafe for OneTimePurchaseDetails
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