pub struct PlanCharge {Show 15 fields
pub lago_id: Option<Uuid>,
pub lago_billable_metric_id: Option<Uuid>,
pub billable_metric_id: Option<Uuid>,
pub created_at: Option<DateTime<Utc>>,
pub charge_model: ChargeModel,
pub invoiceable: Option<bool>,
pub invoice_display_name: Option<String>,
pub pay_in_advance: Option<bool>,
pub prorated: Option<bool>,
pub min_amount_cents: Option<i64>,
pub properties: Option<Value>,
pub tax_codes: Option<Vec<String>>,
pub taxes: Option<Vec<PlanTax>>,
pub filters: Option<Vec<ChargeFilter>>,
pub regroup_paid_fees: Option<String>,
}Expand description
Represents a charge in a plan.
Fields§
§lago_id: Option<Uuid>Unique identifier for the charge in Lago.
lago_billable_metric_id: Option<Uuid>The Lago ID of the billable metric.
billable_metric_id: Option<Uuid>The billable metric ID to reference.
created_at: Option<DateTime<Utc>>When the charge was created.
charge_model: ChargeModelThe charge model to use.
invoiceable: Option<bool>Whether the charge is invoiceable.
invoice_display_name: Option<String>Display name for the charge on invoices.
pay_in_advance: Option<bool>Whether the charge is billed in advance.
prorated: Option<bool>Whether the charge is prorated.
min_amount_cents: Option<i64>Minimum amount in cents for this charge.
properties: Option<Value>Charge properties (model-specific configuration).
tax_codes: Option<Vec<String>>Tax codes for this charge.
taxes: Option<Vec<PlanTax>>Taxes applied to this charge.
filters: Option<Vec<ChargeFilter>>Filters for differentiated pricing.
regroup_paid_fees: Option<String>The regroup paid fees option.
Trait Implementations§
Source§impl Clone for PlanCharge
impl Clone for PlanCharge
Source§fn clone(&self) -> PlanCharge
fn clone(&self) -> PlanCharge
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 PlanCharge
impl Debug for PlanCharge
Source§impl<'de> Deserialize<'de> for PlanCharge
impl<'de> Deserialize<'de> for PlanCharge
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 PlanCharge
impl RefUnwindSafe for PlanCharge
impl Send for PlanCharge
impl Sync for PlanCharge
impl Unpin for PlanCharge
impl UnwindSafe for PlanCharge
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