pub struct UsageAccount {
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_cache_read_tokens: u64,
pub total_cache_write_tokens: u64,
pub request_count: u64,
}Fields§
§total_input_tokens: u64§total_output_tokens: u64§total_cache_read_tokens: u64§total_cache_write_tokens: u64§request_count: u64Implementations§
Source§impl UsageAccount
impl UsageAccount
pub fn record(&mut self, usage: &UsageEvent)
Trait Implementations§
Source§impl Clone for UsageAccount
impl Clone for UsageAccount
Source§fn clone(&self) -> UsageAccount
fn clone(&self) -> UsageAccount
Returns a duplicate of the value. Read more
1.0.0 · 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 UsageAccount
impl Debug for UsageAccount
Source§impl Default for UsageAccount
impl Default for UsageAccount
Source§fn default() -> UsageAccount
fn default() -> UsageAccount
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageAccount
impl RefUnwindSafe for UsageAccount
impl Send for UsageAccount
impl Sync for UsageAccount
impl Unpin for UsageAccount
impl UnsafeUnpin for UsageAccount
impl UnwindSafe for UsageAccount
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