pub enum SubscriptionPaymentMode {
PayAsYouGo,
PayUpFront,
FreeTrial,
Unknown(String),
}Expand description
Wraps StoreKit.Product.SubscriptionOffer.PaymentMode.
Variants§
PayAsYouGo
Represents the PayAsYouGo StoreKit case.
PayUpFront
Represents the PayUpFront StoreKit case.
FreeTrial
Represents the FreeTrial StoreKit case.
Unknown(String)
Preserves an unrecognized StoreKit case.
Implementations§
Source§impl SubscriptionPaymentMode
impl SubscriptionPaymentMode
Sourcepub fn localized_description(&self) -> Result<String, StoreKitError>
pub fn localized_description(&self) -> Result<String, StoreKitError>
Returns the localized StoreKit description for this subscription payment mode.
Trait Implementations§
Source§impl Clone for SubscriptionPaymentMode
impl Clone for SubscriptionPaymentMode
Source§impl Debug for SubscriptionPaymentMode
impl Debug for SubscriptionPaymentMode
impl Eq for SubscriptionPaymentMode
Source§impl PartialEq for SubscriptionPaymentMode
impl PartialEq for SubscriptionPaymentMode
impl StructuralPartialEq for SubscriptionPaymentMode
Auto Trait Implementations§
impl Forget for SubscriptionPaymentMode
impl Freeze for SubscriptionPaymentMode
impl Move for SubscriptionPaymentMode
impl RefUnwindSafe for SubscriptionPaymentMode
impl Send for SubscriptionPaymentModewhere
RawVecInner: Send,
impl Sync for SubscriptionPaymentModewhere
RawVecInner: Sync,
impl Unpin for SubscriptionPaymentMode
impl UnsafeUnpin for SubscriptionPaymentMode
impl UnwindSafe for SubscriptionPaymentModewhere
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