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
Source§fn clone(&self) -> CommandStats
fn clone(&self) -> CommandStats
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 moreAuto 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