pub struct ProjectSubscription {Show 13 fields
pub base_amount_cents: i64,
pub cancels_at: Option<String>,
pub category: String,
pub category_display_name: Option<Option<String>>,
pub currency: String,
pub current_period_end: Option<String>,
pub entitlements: Vec<ProjectSubscriptionEntitlement>,
pub fixed_charges: Vec<FixedCharge>,
pub minimum_commitment: Option<BillingPlanMinimumCommitment>,
pub plan_code: String,
pub plan_name: String,
pub status: SubscriptionStatus,
pub tier_display_name: Option<String>,
}Fields§
§base_amount_cents: i64The plan’s recurring base fee in whole cents.
cancels_at: Option<String>When the subscription will end instead of renewing, ISO 8601.
category: StringCategory slug, e.g. analytics or messaging.
category_display_name: Option<Option<String>>Display name for the subscription category; absent or null when unconfigured.
currency: StringISO currency code.
current_period_end: Option<String>End of the current billing period, ISO 8601.
entitlements: Vec<ProjectSubscriptionEntitlement>Feature gates granted by this category’s plan.
fixed_charges: Vec<FixedCharge>Fixed charges defined by this category’s current plan. Quantity is the plan default.
minimum_commitment: Option<BillingPlanMinimumCommitment>§plan_code: StringThis category’s plan.
plan_name: StringThe plan’s customer-facing name, e.g. Messaging Pro.
status: SubscriptionStatus§tier_display_name: Option<String>The plan’s tier as customers see it, e.g. Pro for Messaging Pro, where the category is already clear. Null when unconfigured.
Implementations§
Source§impl ProjectSubscription
impl ProjectSubscription
pub fn serialize<__S>(
__self: &ProjectSubscription,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> ProjectSubscription
impl<'de> ProjectSubscription
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProjectSubscription, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for ProjectSubscription
impl Clone for ProjectSubscription
Source§impl Debug for ProjectSubscription
impl Debug for ProjectSubscription
Source§impl<'de> Deserialize<'de> for ProjectSubscription
impl<'de> Deserialize<'de> for ProjectSubscription
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectSubscription
impl RefUnwindSafe for ProjectSubscription
impl Send for ProjectSubscription
impl Sync for ProjectSubscription
impl Unpin for ProjectSubscription
impl UnsafeUnpin for ProjectSubscription
impl UnwindSafe for ProjectSubscription
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