pub enum PurchaseOption {
AppAccountToken {
app_account_token: String,
},
Quantity {
quantity: i64,
},
SimulatesAskToBuyInSandbox {
simulate_ask_to_buy_in_sandbox: bool,
},
CustomString {
key: String,
value: String,
},
CustomNumber {
key: String,
value: f64,
},
CustomBool {
key: String,
value: bool,
},
CustomData {
key: String,
value_base64: String,
},
PromotionalOfferSignature {
offer_id: String,
key_id: String,
nonce: String,
signature_base64: String,
timestamp: i64,
},
PromotionalOfferCompactJws {
offer_id: String,
compact_jws: String,
},
IntroductoryOfferEligibility {
compact_jws: String,
},
WinBackOffer {
offer_id: String,
},
OnStorefrontChange {
should_continue_purchase: bool,
},
}Variants§
AppAccountToken
Quantity
SimulatesAskToBuyInSandbox
CustomString
CustomNumber
CustomBool
CustomData
PromotionalOfferSignature
PromotionalOfferCompactJws
IntroductoryOfferEligibility
WinBackOffer
OnStorefrontChange
Trait Implementations§
Source§impl Clone for PurchaseOption
impl Clone for PurchaseOption
Source§fn clone(&self) -> PurchaseOption
fn clone(&self) -> PurchaseOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PurchaseOption
impl Debug for PurchaseOption
Source§impl PartialEq for PurchaseOption
impl PartialEq for PurchaseOption
Source§fn eq(&self, other: &PurchaseOption) -> bool
fn eq(&self, other: &PurchaseOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PurchaseOption
impl Serialize for PurchaseOption
impl StructuralPartialEq for PurchaseOption
Auto Trait Implementations§
impl Freeze for PurchaseOption
impl RefUnwindSafe for PurchaseOption
impl Send for PurchaseOption
impl Sync for PurchaseOption
impl Unpin for PurchaseOption
impl UnsafeUnpin for PurchaseOption
impl UnwindSafe for PurchaseOption
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