pub struct SubscriptionPurchaseResponse {
pub success: bool,
pub purchase_token: Option<String>,
pub order_id: Option<String>,
pub is_auto_renewing: Option<bool>,
pub pending: Option<bool>,
pub base_plan_id: Option<String>,
pub offer_token: Option<String>,
pub product_id: Option<String>,
pub price: Option<String>,
}Fields§
§success: boolWhether the subscription purchase was successful or not
purchase_token: Option<String>The purchase token for the subscription
order_id: Option<String>The order ID for the subscription
is_auto_renewing: Option<bool>Whether the subscription is auto-renewing
pending: Option<bool>Whether the purchase is pending (for subscriptions)
base_plan_id: Option<String>The base plan ID for the subscription (e.g., “monthly”, “weekly”, “yearly”)
offer_token: Option<String>The offer token for the subscription
product_id: Option<String>The product ID of the purchased subscription
price: Option<String>The price of the subscription
Trait Implementations§
Source§impl Clone for SubscriptionPurchaseResponse
impl Clone for SubscriptionPurchaseResponse
Source§fn clone(&self) -> SubscriptionPurchaseResponse
fn clone(&self) -> SubscriptionPurchaseResponse
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 SubscriptionPurchaseResponse
impl Debug for SubscriptionPurchaseResponse
Source§impl Default for SubscriptionPurchaseResponse
impl Default for SubscriptionPurchaseResponse
Source§fn default() -> SubscriptionPurchaseResponse
fn default() -> SubscriptionPurchaseResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionPurchaseResponse
impl<'de> Deserialize<'de> for SubscriptionPurchaseResponse
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 SubscriptionPurchaseResponse
impl RefUnwindSafe for SubscriptionPurchaseResponse
impl Send for SubscriptionPurchaseResponse
impl Sync for SubscriptionPurchaseResponse
impl Unpin for SubscriptionPurchaseResponse
impl UnsafeUnpin for SubscriptionPurchaseResponse
impl UnwindSafe for SubscriptionPurchaseResponse
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