pub struct SessionSummary {Show 19 fields
pub session_id: String,
pub project_display_name: String,
pub first_timestamp: Option<DateTime<Utc>>,
pub duration_minutes: f64,
pub model: String,
pub turn_count: usize,
pub agent_turn_count: usize,
pub output_tokens: u64,
pub context_tokens: u64,
pub max_context: u64,
pub cache_hit_rate: f64,
pub cache_write_5m_pct: f64,
pub compaction_count: usize,
pub cost: f64,
pub tool_use_count: usize,
pub top_tools: Vec<(String, usize)>,
pub turn_details: Option<Vec<TurnDetail>>,
pub output_ratio: f64,
pub cost_per_turn: f64,
}Expand description
Session-level summary for overview reports and session ranking tables.
Fields§
§session_id: String§project_display_name: String§first_timestamp: Option<DateTime<Utc>>§duration_minutes: f64§model: String§turn_count: usize§agent_turn_count: usize§output_tokens: u64§context_tokens: u64§max_context: u64§cache_hit_rate: f64§cache_write_5m_pct: f64§compaction_count: usize§cost: f64§tool_use_count: usize§top_tools: Vec<(String, usize)>§turn_details: Option<Vec<TurnDetail>>§output_ratio: f64§cost_per_turn: f64Trait Implementations§
Source§impl Debug for SessionSummary
impl Debug for SessionSummary
Auto Trait Implementations§
impl Freeze for SessionSummary
impl RefUnwindSafe for SessionSummary
impl Send for SessionSummary
impl Sync for SessionSummary
impl Unpin for SessionSummary
impl UnsafeUnpin for SessionSummary
impl UnwindSafe for SessionSummary
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more