pub struct ResetCredits {
pub available: u32,
pub credits: Vec<ResetCredit>,
}Expand description
Banked, user-redeemable quota resets — Codex’s “rate limit reset credits”
and SuperGrok’s “remaining resets” are the same idea under two names: a
count you have earned, each with its own expiry, redeemed by hand rather
than arriving on the window’s own schedule. Distinct from a
UsageWindow::resets_at, which needs no action and cannot be banked.
The redemption identifier each provider returns alongside these
(credits[].id, tokens[].token_id) is deliberately not carried here:
it is the handle that spends the credit, and nothing that renders a status
bar needs it.
Fields§
§available: u32§credits: Vec<ResetCredit>One row per credit the provider described. May be shorter than
available — Codex’s usage endpoint gives the count without the
per-credit detail, and the detail call is allowed to fail on its own.
Implementations§
Trait Implementations§
Source§impl Clone for ResetCredits
impl Clone for ResetCredits
Source§fn clone(&self) -> ResetCredits
fn clone(&self) -> ResetCredits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResetCredits
impl Debug for ResetCredits
Source§impl Default for ResetCredits
impl Default for ResetCredits
Source§fn default() -> ResetCredits
fn default() -> ResetCredits
Source§impl<'de> Deserialize<'de> for ResetCredits
impl<'de> Deserialize<'de> for ResetCredits
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>,
impl Eq for ResetCredits
Source§impl PartialEq for ResetCredits
impl PartialEq for ResetCredits
Source§impl Serialize for ResetCredits
impl Serialize for ResetCredits
impl StructuralPartialEq for ResetCredits
Auto Trait Implementations§
impl Freeze for ResetCredits
impl RefUnwindSafe for ResetCredits
impl Send for ResetCredits
impl Sync for ResetCredits
impl Unpin for ResetCredits
impl UnsafeUnpin for ResetCredits
impl UnwindSafe for ResetCredits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more