pub struct BillingPlan {
pub base_amount_cents: i64,
pub category_display_name: Option<Option<String>>,
pub currency: String,
pub description: Option<String>,
pub entitlements: Vec<BillingPlanEntitlement>,
pub fixed_charges: Vec<FixedCharge>,
pub interval: BillingPlanInterval,
pub name: String,
pub pay_in_advance: bool,
pub plan_code: String,
pub usage_charges: Vec<UsageCharge>,
}Fields§
§base_amount_cents: i64Recurring base price in whole cents.
category_display_name: Option<Option<String>>Display name for the subscription category; absent or null when unconfigured.
currency: StringISO currency code.
description: Option<String>§entitlements: Vec<BillingPlanEntitlement>§fixed_charges: Vec<FixedCharge>§interval: BillingPlanInterval§name: String§pay_in_advance: bool§plan_code: String§usage_charges: Vec<UsageCharge>Implementations§
Source§impl BillingPlan
impl BillingPlan
pub fn serialize<__S>(
__self: &BillingPlan,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BillingPlan
impl<'de> BillingPlan
pub fn deserialize<__D>(__deserializer: __D) -> Result<BillingPlan, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BillingPlan
impl Clone for BillingPlan
Source§impl Debug for BillingPlan
impl Debug for BillingPlan
Source§impl<'de> Deserialize<'de> for BillingPlan
impl<'de> Deserialize<'de> for BillingPlan
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 BillingPlan
impl RefUnwindSafe for BillingPlan
impl Send for BillingPlan
impl Sync for BillingPlan
impl Unpin for BillingPlan
impl UnsafeUnpin for BillingPlan
impl UnwindSafe for BillingPlan
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