pub struct BalanceShortfall {
pub remaining: CostUnits,
pub period_end: Option<Timestamp>,
}Expand description
Allocator evidence of an account’s remaining funding: what it was funded with minus what it has consumed or lost, including units held in leases.
An upper bound on what the account can still spend. Unreported
consumption can only lower true remaining funding, so a quote above
remaining cannot be funded until new funding or a new period arrives.
The converse does not hold: a quote within it may still find no lease.
period_end bounds validity as it does for BalanceExhaustion.
Fields§
§remaining: CostUnitsThe most the account can still spend, counting units held in leases. An upper bound, never a balance to display.
period_end: Option<Timestamp>When the current period ends, bounding how long this evidence holds;
None for an account without a schedule.
Implementations§
Source§impl BalanceShortfall
impl BalanceShortfall
Sourcepub fn exhaustion(self) -> Option<BalanceExhaustion>
pub fn exhaustion(self) -> Option<BalanceExhaustion>
Zero remaining is exhaustion, the one shortfall no quote survives.