pub struct MonthStats {
pub month: String,
pub commands: usize,
pub input_tokens: usize,
pub output_tokens: usize,
pub saved_tokens: usize,
pub savings_pct: f64,
pub total_time_ms: u64,
pub avg_time_ms: u64,
}Expand description
Monthly statistics for token savings and execution metrics.
Serializable to JSON for export via rtk gain --monthly --format json.
Fields§
§month: StringMonth identifier (YYYY-MM)
commands: usizeNumber of commands executed this month
input_tokens: usizeTotal input tokens for this month
output_tokens: usizeTotal output tokens for this month
saved_tokens: usizeTotal tokens saved this month
savings_pct: f64Savings percentage for this month
total_time_ms: u64Total execution time for this month (milliseconds)
avg_time_ms: u64Average execution time per command (milliseconds)
Trait Implementations§
Source§impl Debug for MonthStats
impl Debug for MonthStats
Auto Trait Implementations§
impl Freeze for MonthStats
impl RefUnwindSafe for MonthStats
impl Send for MonthStats
impl Sync for MonthStats
impl Unpin for MonthStats
impl UnsafeUnpin for MonthStats
impl UnwindSafe for MonthStats
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