Skip to main content

Crate cmduse_core

Crate cmduse_core 

Source

Re-exports§

pub use dates::parse_iso_utc;

Modules§

dates

Functions§

compact
elapsed_pct
Elapsed % of a rolling window: window length = dur_secs, ends at reset_at.
money
pace_eta
Seconds until spend hits cap at the current rate, if that lands before the window resets. None = no warning. Suppressed before 10% of the window has elapsed — the flat-rate projection is unreliable that early.
pct
Percent string of used/cap: “34%” or “—” when cap unknown.
plan_monthly_cap
Monthly credit pool per plan. One shared pool per plan (verified — the docs’ per-model allowances are not what the API meters). None = PAYG.
plan_name
Plan display name from the API’s planId (e.g. “individual-goat” → “GOAT”).
rel_time
Compact “Xh Ym” human time until reset_at (epoch ms). now may be None (zed ext without a clock) → falls back to a raw epoch stamp.