pub enum SubscriptionOfferType {
Introductory,
Promotional,
WinBack,
Unknown(String),
}Expand description
Wraps StoreKit.Product.SubscriptionOffer.OfferType.
Variants§
Introductory
Represents the Introductory StoreKit case.
Promotional
Represents the Promotional StoreKit case.
WinBack
Represents the WinBack StoreKit case.
Unknown(String)
Preserves an unrecognized StoreKit case.
Implementations§
Source§impl SubscriptionOfferType
impl SubscriptionOfferType
Sourcepub fn localized_description(&self) -> Result<String, StoreKitError>
pub fn localized_description(&self) -> Result<String, StoreKitError>
Returns the localized StoreKit description for this subscription offer type.
Trait Implementations§
Source§impl Clone for SubscriptionOfferType
impl Clone for SubscriptionOfferType
Source§impl Debug for SubscriptionOfferType
impl Debug for SubscriptionOfferType
impl Eq for SubscriptionOfferType
Source§impl PartialEq for SubscriptionOfferType
impl PartialEq for SubscriptionOfferType
impl StructuralPartialEq for SubscriptionOfferType
Auto Trait Implementations§
impl Freeze for SubscriptionOfferType
impl RefUnwindSafe for SubscriptionOfferType
impl Send for SubscriptionOfferType
impl Sync for SubscriptionOfferType
impl Unpin for SubscriptionOfferType
impl UnsafeUnpin for SubscriptionOfferType
impl UnwindSafe for SubscriptionOfferType
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