pub struct SubscriptionPlan {
pub lago_id: Uuid,
pub name: String,
pub invoice_display_name: Option<String>,
pub created_at: DateTime<Utc>,
pub code: String,
pub interval: String,
pub description: Option<String>,
pub amount_cents: i64,
pub amount_currency: String,
pub trial_period: Option<f64>,
pub pay_in_advance: bool,
pub bill_charges_monthly: Option<bool>,
}Expand description
Plan details associated with a subscription.
Fields§
§lago_id: UuidUnique identifier for the plan in Lago.
name: StringName of the plan.
invoice_display_name: Option<String>Display name for invoices.
created_at: DateTime<Utc>When the plan was created.
code: StringUnique code for the plan.
interval: StringBilling interval (weekly, monthly, quarterly, yearly).
description: Option<String>Description of the plan.
amount_cents: i64Base amount in cents.
amount_currency: StringCurrency for the amount.
trial_period: Option<f64>Trial period in days.
pay_in_advance: boolWhether the plan is billed in advance.
bill_charges_monthly: Option<bool>Whether charges are billed monthly for yearly plans.
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