pub struct UsageEvent {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
}Fields§
§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64Trait Implementations§
Source§impl Clone for UsageEvent
impl Clone for UsageEvent
Source§fn clone(&self) -> UsageEvent
fn clone(&self) -> UsageEvent
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 UsageEvent
impl Debug for UsageEvent
Auto Trait Implementations§
impl Freeze for UsageEvent
impl RefUnwindSafe for UsageEvent
impl Send for UsageEvent
impl Sync for UsageEvent
impl Unpin for UsageEvent
impl UnsafeUnpin for UsageEvent
impl UnwindSafe for UsageEvent
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