pub enum PurchaseOption {
Show 13 variants
AppAccountToken {
app_account_token: String,
},
BillingPlanType {
billing_plan_type: BillingPlanType,
},
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,
},
}Expand description
Represents options passed to StoreKit.Product.purchase(options:).
Variants§
AppAccountToken
Represents the AppAccountToken StoreKit case.
BillingPlanType
Represents the BillingPlanType StoreKit case.
Fields
§
billing_plan_type: BillingPlanTypeValue forwarded to StoreKit for billingPlanType.
Quantity
Represents the Quantity StoreKit case.
SimulatesAskToBuyInSandbox
Represents the SimulatesAskToBuyInSandbox StoreKit case.
Fields
CustomString
Represents the CustomString StoreKit case.
CustomNumber
Represents the CustomNumber StoreKit case.
CustomBool
Represents the CustomBool StoreKit case.
CustomData
Represents the CustomData StoreKit case.
Fields
PromotionalOfferSignature
Represents the PromotionalOfferSignature StoreKit case.
Fields
PromotionalOfferCompactJws
Represents the PromotionalOfferCompactJws StoreKit case.
Fields
IntroductoryOfferEligibility
Represents the IntroductoryOfferEligibility StoreKit case.
WinBackOffer
Represents the WinBackOffer StoreKit case.
OnStorefrontChange
Represents the OnStorefrontChange StoreKit case.
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