pub struct PlanMinimumCommitment {
pub lago_id: Option<Uuid>,
pub plan_code: Option<String>,
pub amount_cents: Option<i64>,
pub invoice_display_name: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub tax_codes: Option<Vec<String>>,
pub taxes: Option<Vec<PlanTax>>,
}Expand description
Minimum commitment for a plan.
Fields§
§lago_id: Option<Uuid>Unique identifier in Lago.
plan_code: Option<String>Plan ID this commitment belongs to.
amount_cents: Option<i64>Minimum commitment amount in cents.
invoice_display_name: Option<String>Invoice display name for the minimum commitment.
created_at: Option<DateTime<Utc>>When the commitment was created.
updated_at: Option<DateTime<Utc>>When the commitment was last updated.
tax_codes: Option<Vec<String>>Tax codes for the minimum commitment.
taxes: Option<Vec<PlanTax>>Taxes applied to the minimum commitment.
Trait Implementations§
Source§impl Clone for PlanMinimumCommitment
impl Clone for PlanMinimumCommitment
Source§fn clone(&self) -> PlanMinimumCommitment
fn clone(&self) -> PlanMinimumCommitment
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 PlanMinimumCommitment
impl Debug for PlanMinimumCommitment
Source§impl<'de> Deserialize<'de> for PlanMinimumCommitment
impl<'de> Deserialize<'de> for PlanMinimumCommitment
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 PlanMinimumCommitment
impl RefUnwindSafe for PlanMinimumCommitment
impl Send for PlanMinimumCommitment
impl Sync for PlanMinimumCommitment
impl Unpin for PlanMinimumCommitment
impl UnwindSafe for PlanMinimumCommitment
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