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 Forget for OfferType
impl Freeze for OfferType
impl Move for OfferType
impl RefUnwindSafe for OfferType
impl Send for OfferTypewhere
RawVecInner: Send,
impl Sync for OfferTypewhere
RawVecInner: Sync,
impl Unpin for OfferType
impl UnsafeUnpin for OfferType
impl UnwindSafe for OfferTypewhere
RawVecInner: UnwindSafe,
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