pub struct SubscriptionPlan {Show 14 fields
pub id: String,
pub code: String,
pub name: String,
pub description: Option<String>,
pub price_cents: i64,
pub currency: String,
pub interval: String,
pub interval_count: i32,
pub trial_days: i32,
pub features: Vec<PlanFeature>,
pub display_order: i32,
pub credits_amount: i32,
pub plan_type: PlanType,
pub contact_url: Option<String>,
}Expand description
Subscription plan available for purchase.
Fields§
§id: String§code: String§name: String§description: Option<String>§price_cents: i64§currency: String§interval: String§interval_count: i32§trial_days: i32§features: Vec<PlanFeature>§display_order: i32§credits_amount: i32§plan_type: PlanType§contact_url: Option<String>Trait Implementations§
Source§impl Clone for SubscriptionPlan
impl Clone for SubscriptionPlan
Source§fn clone(&self) -> SubscriptionPlan
fn clone(&self) -> SubscriptionPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubscriptionPlan
impl Debug for SubscriptionPlan
Source§impl<'de> Deserialize<'de> for SubscriptionPlan
impl<'de> Deserialize<'de> for SubscriptionPlan
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 SubscriptionPlan
impl RefUnwindSafe for SubscriptionPlan
impl Send for SubscriptionPlan
impl Sync for SubscriptionPlan
impl Unpin for SubscriptionPlan
impl UnwindSafe for SubscriptionPlan
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