pub struct UsageSnapshot {
pub plan: Option<String>,
pub windows: Vec<UsageWindow>,
pub credits: Option<UsageCredits>,
pub rate_limit_reset_credits: Option<RateLimitResetCredits>,
pub raw: Value,
}Expand description
Normalized usage/quota snapshot for one credential.
Fields§
§plan: Option<String>Plan / subscription label when the provider reports one ("pro",
"KIRO PRO+", "business", …).
windows: Vec<UsageWindow>Rate-limit / quota windows (5h + 7d, primary/secondary, per-model, per feature). Empty when the provider only reports credits.
credits: Option<UsageCredits>Money / credit balance + overage, when the channel exposes it.
rate_limit_reset_credits: Option<RateLimitResetCredits>Earned rate-limit reset credits, when the upstream exposes them.
raw: ValueThe original upstream response JSON, for display / debugging.
Trait Implementations§
Source§impl Clone for UsageSnapshot
impl Clone for UsageSnapshot
Source§fn clone(&self) -> UsageSnapshot
fn clone(&self) -> UsageSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UsageSnapshot
impl Debug for UsageSnapshot
Source§impl Default for UsageSnapshot
impl Default for UsageSnapshot
Source§fn default() -> UsageSnapshot
fn default() -> UsageSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageSnapshot
impl RefUnwindSafe for UsageSnapshot
impl Send for UsageSnapshot
impl Sync for UsageSnapshot
impl Unpin for UsageSnapshot
impl UnsafeUnpin for UsageSnapshot
impl UnwindSafe for UsageSnapshot
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