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§fn clone(&self) -> SubscriptionPaymentMode
fn clone(&self) -> SubscriptionPaymentMode
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 SubscriptionPaymentMode
impl Debug for SubscriptionPaymentMode
Source§impl PartialEq for SubscriptionPaymentMode
impl PartialEq for SubscriptionPaymentMode
Source§fn eq(&self, other: &SubscriptionPaymentMode) -> bool
fn eq(&self, other: &SubscriptionPaymentMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SubscriptionPaymentMode
impl StructuralPartialEq for SubscriptionPaymentMode
Auto Trait Implementations§
impl Freeze for SubscriptionPaymentMode
impl RefUnwindSafe for SubscriptionPaymentMode
impl Send for SubscriptionPaymentMode
impl Sync for SubscriptionPaymentMode
impl Unpin for SubscriptionPaymentMode
impl UnsafeUnpin for SubscriptionPaymentMode
impl UnwindSafe for SubscriptionPaymentMode
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