pub enum ProductPurchaseErrorCode {
InvalidQuantity,
ProductUnavailable,
PurchaseNotAllowed,
IneligibleForOffer,
InvalidOfferIdentifier,
InvalidOfferPrice,
InvalidOfferSignature,
MissingOfferParameters,
Other(String),
}Expand description
Wraps the code space of StoreKit.Product.PurchaseError.
Variants§
InvalidQuantity
Represents the InvalidQuantity StoreKit case.
Represents the ProductUnavailable StoreKit case.
PurchaseNotAllowed
Represents the PurchaseNotAllowed StoreKit case.
IneligibleForOffer
Represents the IneligibleForOffer StoreKit case.
InvalidOfferIdentifier
Represents the InvalidOfferIdentifier StoreKit case.
InvalidOfferPrice
Represents the InvalidOfferPrice StoreKit case.
InvalidOfferSignature
Represents the InvalidOfferSignature StoreKit case.
MissingOfferParameters
Represents the MissingOfferParameters StoreKit case.
Other(String)
Represents the other StoreKit case.
Implementations§
Trait Implementations§
Source§impl Clone for ProductPurchaseErrorCode
impl Clone for ProductPurchaseErrorCode
Source§fn clone(&self) -> ProductPurchaseErrorCode
fn clone(&self) -> ProductPurchaseErrorCode
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 ProductPurchaseErrorCode
impl Debug for ProductPurchaseErrorCode
Source§impl PartialEq for ProductPurchaseErrorCode
impl PartialEq for ProductPurchaseErrorCode
Source§fn eq(&self, other: &ProductPurchaseErrorCode) -> bool
fn eq(&self, other: &ProductPurchaseErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProductPurchaseErrorCode
impl StructuralPartialEq for ProductPurchaseErrorCode
Auto Trait Implementations§
impl Freeze for ProductPurchaseErrorCode
impl RefUnwindSafe for ProductPurchaseErrorCode
impl Send for ProductPurchaseErrorCode
impl Sync for ProductPurchaseErrorCode
impl Unpin for ProductPurchaseErrorCode
impl UnsafeUnpin for ProductPurchaseErrorCode
impl UnwindSafe for ProductPurchaseErrorCode
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