pub struct SessionInfoInternal {Show 14 fields
pub session_id: String,
pub file_path: Option<PathBuf>,
pub name: Option<String>,
pub message_count: usize,
pub user_messages: usize,
pub assistant_messages: usize,
pub tool_calls: usize,
pub tool_results: usize,
pub total_tokens: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub cost: f64,
}Expand description
Session info passed to commands for display.
Fields§
§session_id: String§file_path: Option<PathBuf>§name: Option<String>§message_count: usize§user_messages: usize§assistant_messages: usize§tool_calls: usize§tool_results: usize§total_tokens: u64§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§cost: f64Trait Implementations§
Source§impl Clone for SessionInfoInternal
impl Clone for SessionInfoInternal
Source§fn clone(&self) -> SessionInfoInternal
fn clone(&self) -> SessionInfoInternal
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 SessionInfoInternal
impl RefUnwindSafe for SessionInfoInternal
impl Send for SessionInfoInternal
impl Sync for SessionInfoInternal
impl Unpin for SessionInfoInternal
impl UnsafeUnpin for SessionInfoInternal
impl UnwindSafe for SessionInfoInternal
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