pub struct ProjectSubscription {
pub cancels_at: Option<String>,
pub category: String,
pub category_display_name: Option<Option<String>>,
pub current_period_end: Option<String>,
pub entitlements: Vec<ProjectSubscriptionEntitlement>,
pub fixed_charges: Vec<FixedCharge>,
pub plan_code: String,
pub status: SubscriptionStatus,
}Fields§
§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.
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.
plan_code: StringThis category’s plan; display only.
status: SubscriptionStatusImplementations§
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