#[repr(i16)]pub enum PlanType {
Show 14 variants
IndividualBasicMonthly = 0,
IndividualBasicAnnually = 1,
IndividualProMonthly = 2,
IndividualProAnnually = 3,
SchoolLevel1Monthly = 4,
SchoolLevel2Monthly = 5,
SchoolLevel3Monthly = 6,
SchoolLevel4Monthly = 7,
SchoolUnlimitedMonthly = 8,
SchoolLevel1Annually = 9,
SchoolLevel2Annually = 10,
SchoolLevel3Annually = 11,
SchoolLevel4Annually = 12,
SchoolUnlimitedAnnually = 13,
}
Expand description
Possible individual subscription plans
Variants§
IndividualBasicMonthly = 0
Basic level, monthly
IndividualBasicAnnually = 1
Basic level, annually
IndividualProMonthly = 2
Pro level, monthly
IndividualProAnnually = 3
Pro level, annually
SchoolLevel1Monthly = 4
School level 1 annually
SchoolLevel2Monthly = 5
School level 2 annually
SchoolLevel3Monthly = 6
School level 3 annually
SchoolLevel4Monthly = 7
School level 4 annually
SchoolUnlimitedMonthly = 8
School unlimited annually
SchoolLevel1Annually = 9
School level 1 monthly
SchoolLevel2Annually = 10
School level 2 monthly
SchoolLevel3Annually = 11
School level 3 monthly
SchoolLevel4Annually = 12
School level 4 monthly
SchoolUnlimitedAnnually = 13
School unlimited monthly
Implementations§
Source§impl PlanType
impl PlanType
Sourcepub const fn display_name(&self) -> &'static str
pub const fn display_name(&self) -> &'static str
Get a readable name
Sourcepub const fn user_display_name(&self) -> &'static str
pub const fn user_display_name(&self) -> &'static str
Get a user-friendly name
Sourcepub const fn subscription_tier(&self) -> SubscriptionTier
pub const fn subscription_tier(&self) -> SubscriptionTier
SubscriptionTier
of the current plan
Sourcepub const fn account_limit(&self) -> Option<AccountLimit>
pub const fn account_limit(&self) -> Option<AccountLimit>
Account limit of the current plan
Sourcepub const fn subscription_type(&self) -> SubscriptionType
pub const fn subscription_type(&self) -> SubscriptionType
Subscription type of the current plant
Sourcepub const fn trial_period(&self) -> TrialPeriod
pub const fn trial_period(&self) -> TrialPeriod
Trial period of the current plan
Sourcepub const fn billing_interval(&self) -> BillingInterval
pub const fn billing_interval(&self) -> BillingInterval
Billing interval for the current plan
Sourcepub const fn can_upgrade_from(&self, from_type: &Self) -> bool
pub const fn can_upgrade_from(&self, from_type: &Self) -> bool
Whether it is possible to upgrade from another plan type to self
Sourcepub const fn can_upgrade_from_same_interval(&self, from_type: &Self) -> bool
pub const fn can_upgrade_from_same_interval(&self, from_type: &Self) -> bool
Whether it is possible to upgrade from another plan type to self in the same billing interval
Sourcepub const fn is_individual_plan(&self) -> bool
pub const fn is_individual_plan(&self) -> bool
check if is individual plan
Sourcepub const fn is_school_plan(&self) -> bool
pub const fn is_school_plan(&self) -> bool
check if is school plan
Sourcepub const fn plan_price(&self) -> u32
pub const fn plan_price(&self) -> u32
Price for each plan.
Sourcepub const fn annual_to_monthly(&self) -> PlanType
pub const fn annual_to_monthly(&self) -> PlanType
Monthly version of annual plan.
Sourcepub const fn monthly_to_annual(&self) -> PlanType
pub const fn monthly_to_annual(&self) -> PlanType
Annual version of monthly plan.
Sourcepub const fn basic_to_pro(&self) -> PlanType
pub const fn basic_to_pro(&self) -> PlanType
Pro version of basic plan.