pub struct SubscriptionTerms {
pub cancels_at: Option<String>,
pub category: String,
pub current_period_end: String,
pub current_period_start: String,
pub next_billing_at: String,
pub payment_mode: PaymentMode,
pub plan: BillingPlan,
pub plan_source: PlanSource,
pub scheduled_plan_change: Option<ScheduledPlanChange>,
}Expand description
What one subscription is billed on now. plan is the plan as this subscription has it: its own prices when overridden, each fixed charge at the subscription’s price and quantity, and entitlements resolved with overrides.
Fields§
§cancels_at: Option<String>When the subscription ends instead of renewing, ISO 8601.
category: StringCategory slug, e.g. analytics or messaging.
current_period_end: StringISO 8601.
current_period_start: StringISO 8601.
next_billing_at: StringWhen the next invoice is issued: the second after the period ends, ISO 8601.
payment_mode: PaymentMode§plan: BillingPlan§plan_source: PlanSource§scheduled_plan_change: Option<ScheduledPlanChange>A downgrade waiting for the period end, or null.
Implementations§
Source§impl SubscriptionTerms
impl SubscriptionTerms
pub fn serialize<__S>(
__self: &SubscriptionTerms,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> SubscriptionTerms
impl<'de> SubscriptionTerms
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionTerms, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for SubscriptionTerms
impl Clone for SubscriptionTerms
Source§impl Debug for SubscriptionTerms
impl Debug for SubscriptionTerms
Source§impl<'de> Deserialize<'de> for SubscriptionTerms
impl<'de> Deserialize<'de> for SubscriptionTerms
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 SubscriptionTerms
impl RefUnwindSafe for SubscriptionTerms
impl Send for SubscriptionTerms
impl Sync for SubscriptionTerms
impl Unpin for SubscriptionTerms
impl UnsafeUnpin for SubscriptionTerms
impl UnwindSafe for SubscriptionTerms
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