pub struct Summary {Show 15 fields
pub agent: String,
pub generated_at: Timestamp,
pub since: Option<Date>,
pub sessions_parsed: u64,
pub sessions_failed: u64,
pub skipped_lines: u64,
pub dedup: DedupStats,
pub totals: Rollup,
pub sidechain_totals: Rollup,
pub by_model: BTreeMap<String, Rollup>,
pub by_day: BTreeMap<String, Rollup>,
pub by_session: Vec<SessionSummary>,
pub by_tool: BTreeMap<String, ToolStat>,
pub unpriced_models: BTreeSet<String>,
pub compactions: u64,
}Expand description
Everything the renderers (table / JSON / TUI) need.
Fields§
§agent: String§generated_at: Timestamp§since: Option<Date>§sessions_parsed: u64§sessions_failed: u64§skipped_lines: u64Unrecognized/corrupt lines skipped leniently across all files.
dedup: DedupStats§totals: RollupGrand totals (deduplicated, includes sub-agent spend).
sidechain_totals: RollupThe sub-agent (sidechain) share of totals.
by_model: BTreeMap<String, Rollup>§by_day: BTreeMap<String, Rollup>Keyed by UTC date (YYYY-MM-DD).
by_session: Vec<SessionSummary>Sorted by cost, then tokens, descending. Sub-agent transcripts are folded into their parent’s row.
by_tool: BTreeMap<String, ToolStat>§unpriced_models: BTreeSet<String>Models we refused to price (not in the embedded snapshot — §8.7 forbids guessing).
compactions: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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