pub struct CommandStats {
pub command: String,
pub invocations: u32,
pub tokens_in: u64,
pub tokens_out: u64,
pub tokens_saved: u64,
}Expand description
Per-command token usage breakdown.
Fields§
§command: String§invocations: u32§tokens_in: u64§tokens_out: u64§tokens_saved: u64Implementations§
Source§impl CommandStats
impl CommandStats
pub fn reduction_pct(&self) -> f64
Trait Implementations§
Source§impl Clone for CommandStats
impl Clone for CommandStats
Auto Trait Implementations§
impl Freeze for CommandStats
impl RefUnwindSafe for CommandStats
impl Send for CommandStats
impl Sync for CommandStats
impl Unpin for CommandStats
impl UnsafeUnpin for CommandStats
impl UnwindSafe for CommandStats
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