pub struct UsageCredits {
pub has_credits: Option<bool>,
pub unlimited: Option<bool>,
pub balance: Option<String>,
pub used_credits: Option<f64>,
pub monthly_limit: Option<f64>,
pub currency: Option<String>,
}Expand description
Money / credit balance and on-demand overage, where the channel exposes it
(codex credits, claudecode extra_usage).
Fields§
§has_credits: Option<bool>§unlimited: Option<bool>§balance: Option<String>Formatted balance string when the provider gives one (codex balance).
used_credits: Option<f64>Credits consumed, normalized to the provider’s display unit.
monthly_limit: Option<f64>Spending cap, normalized to the provider’s display unit.
currency: Option<String>Trait Implementations§
Source§impl Clone for UsageCredits
impl Clone for UsageCredits
Source§fn clone(&self) -> UsageCredits
fn clone(&self) -> UsageCredits
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 UsageCredits
impl Debug for UsageCredits
Source§impl Default for UsageCredits
impl Default for UsageCredits
Source§fn default() -> UsageCredits
fn default() -> UsageCredits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageCredits
impl RefUnwindSafe for UsageCredits
impl Send for UsageCredits
impl Sync for UsageCredits
impl Unpin for UsageCredits
impl UnsafeUnpin for UsageCredits
impl UnwindSafe for UsageCredits
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