pub struct Spend {
pub available: Option<bool>,
pub available_cents: Option<i32>,
pub balance_cents: Option<i32>,
pub by_category: Option<Vec<CategorySpend>>,
pub mtd_cents: Option<i32>,
pub overage_cents: Option<i32>,
pub series: Option<Vec<SpendPoint>>,
pub source: Option<String>,
pub total_cents: Option<i32>,
}Fields§
§available: Option<bool>Available is false when the commerce ledger was unconfigured or unreachable. Every number below is then an honest zero, NOT a measured one.
available_cents: Option<i32>AvailableCents is what of that balance is still spendable.
balance_cents: Option<i32>BalanceCents is the prepaid wallet’s balance, in US cents.
by_category: Option<Vec<CategorySpend>>ByCategory is the window’s spend split by ledger category, largest first.
mtd_cents: Option<i32>MTDCents is commerce’s authoritative month-to-date consumed figure, which is a different period from the window and is not derived from it.
overage_cents: Option<i32>OverageCents is month-to-date consumption beyond the plan’s allowance.
series: Option<Vec<SpendPoint>>Series is the window’s spend over time, gap-filled at the window’s interval.
source: Option<String>Source names where the roll-up came from.
total_cents: Option<i32>TotalCents is consumption over the requested window, in US cents. It is self-consistent with ByCategory and Series.