pub struct CommandRecord {
pub timestamp: DateTime<Utc>,
pub rtk_cmd: String,
pub saved_tokens: usize,
pub savings_pct: f64,
}Expand description
Individual command record from tracking history.
Contains timestamp, command name, and savings metrics for a single execution.
Fields§
§timestamp: DateTime<Utc>UTC timestamp when command was executed
rtk_cmd: StringRTK command that was executed (e.g., “rtk ls”)
saved_tokens: usizeNumber of tokens saved (input - output)
savings_pct: f64Savings percentage ((saved / input) * 100)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandRecord
impl RefUnwindSafe for CommandRecord
impl Send for CommandRecord
impl Sync for CommandRecord
impl Unpin for CommandRecord
impl UnsafeUnpin for CommandRecord
impl UnwindSafe for CommandRecord
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