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