pub struct WeekStats {
pub week_start: String,
pub week_end: 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
Weekly statistics for token savings and execution metrics.
Serializable to JSON for export via rtk gain --weekly --format json.
Weeks start on Sunday (SQLite default).
Fields§
§week_start: StringWeek start date (YYYY-MM-DD)
week_end: StringWeek end date (YYYY-MM-DD)
commands: usizeNumber of commands executed this week
input_tokens: usizeTotal input tokens for this week
output_tokens: usizeTotal output tokens for this week
saved_tokens: usizeTotal tokens saved this week
savings_pct: f64Savings percentage for this week
total_time_ms: u64Total execution time for this week (milliseconds)
avg_time_ms: u64Average execution time per command (milliseconds)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WeekStats
impl RefUnwindSafe for WeekStats
impl Send for WeekStats
impl Sync for WeekStats
impl Unpin for WeekStats
impl UnsafeUnpin for WeekStats
impl UnwindSafe for WeekStats
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