pub struct PurchaseOptions {
pub offer_token: Option<String>,
pub obfuscated_account_id: Option<String>,
pub obfuscated_profile_id: Option<String>,
pub app_account_token: Option<String>,
pub old_purchase_token: Option<String>,
pub subscription_replacement_mode: Option<i32>,
}Fields§
§offer_token: Option<String>§obfuscated_account_id: Option<String>§obfuscated_profile_id: Option<String>§app_account_token: Option<String>§old_purchase_token: Option<String>Purchase token of the existing subscription to replace (Android only). When set, the purchase becomes a subscription upgrade/downgrade.
subscription_replacement_mode: Option<i32>Replacement mode for subscription upgrades/downgrades (Android only).
Maps to Google Play BillingFlowParams.SubscriptionUpdateParams.ReplacementMode.
Defaults to WITH_TIME_PRORATION (1) if not specified.
Trait Implementations§
Source§impl Clone for PurchaseOptions
impl Clone for PurchaseOptions
Source§impl Debug for PurchaseOptions
impl Debug for PurchaseOptions
Source§impl<'de> Deserialize<'de> for PurchaseOptions
impl<'de> Deserialize<'de> for PurchaseOptions
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
Auto Trait Implementations§
impl Freeze for PurchaseOptions
impl RefUnwindSafe for PurchaseOptions
impl Send for PurchaseOptions
impl Sync for PurchaseOptions
impl Unpin for PurchaseOptions
impl UnsafeUnpin for PurchaseOptions
impl UnwindSafe for PurchaseOptions
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