pub struct SubscriptionPeriod {
pub unit: SubscriptionPeriodUnit,
pub value: i64,
}Expand description
Wraps StoreKit.Product.SubscriptionPeriod.
Fields§
§unit: SubscriptionPeriodUnitSubscription period unit reported by StoreKit.
value: i64Value returned by StoreKit.
Implementations§
Source§impl SubscriptionPeriod
impl SubscriptionPeriod
Sourcepub const fn every_three_days() -> Self
pub const fn every_three_days() -> Self
Builds a SubscriptionPeriod matching a three-day StoreKit period.
Sourcepub const fn every_two_weeks() -> Self
pub const fn every_two_weeks() -> Self
Builds a SubscriptionPeriod matching a two-week StoreKit period.
Sourcepub const fn every_two_months() -> Self
pub const fn every_two_months() -> Self
Builds a SubscriptionPeriod matching a two-month StoreKit period.
Sourcepub const fn every_three_months() -> Self
pub const fn every_three_months() -> Self
Builds a SubscriptionPeriod matching a three-month StoreKit period.
Sourcepub const fn every_six_months() -> Self
pub const fn every_six_months() -> Self
Builds a SubscriptionPeriod matching a six-month StoreKit period.
Trait Implementations§
Source§impl Clone for SubscriptionPeriod
impl Clone for SubscriptionPeriod
Source§impl Debug for SubscriptionPeriod
impl Debug for SubscriptionPeriod
impl Eq for SubscriptionPeriod
Source§impl PartialEq for SubscriptionPeriod
impl PartialEq for SubscriptionPeriod
impl StructuralPartialEq for SubscriptionPeriod
Auto Trait Implementations§
impl Forget for SubscriptionPeriod
impl Freeze for SubscriptionPeriod
impl Move for SubscriptionPeriod
impl RefUnwindSafe for SubscriptionPeriod
impl Send for SubscriptionPeriodwhere
RawVecInner: Send,
impl Sync for SubscriptionPeriodwhere
RawVecInner: Sync,
impl Unpin for SubscriptionPeriod
impl UnsafeUnpin for SubscriptionPeriod
impl UnwindSafe for SubscriptionPeriodwhere
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