pub struct SessionFooterSnapshot {Show 13 fields
pub total_input: u64,
pub total_output: u64,
pub total_cache_read: u64,
pub total_cache_write: u64,
pub total_cost: f64,
pub context_window: u64,
pub context_percent: Option<f64>,
pub provider: Option<String>,
pub provider_count: usize,
pub thinking_level: ModelThinkingLevel,
pub bash_running: bool,
pub subscription: bool,
pub auto_compact: bool,
}Expand description
Session-derived footer values that require async access to persisted history.
Fields§
§total_input: u64Cumulative input tokens across the persisted session.
total_output: u64Cumulative output tokens across the persisted session.
total_cache_read: u64Cumulative cache-read tokens.
total_cache_write: u64Cumulative cache-write tokens.
total_cost: f64Cumulative cost in USD.
context_window: u64Context-window size in tokens.
context_percent: Option<f64>Context usage percent when known.
provider: Option<String>Active model provider.
provider_count: usizeNumber of providers in the active model catalog.
thinking_level: ModelThinkingLevelActive thinking level.
bash_running: boolWhether bash execution is running.
subscription: boolWhether billing is covered by an OAuth subscription.
auto_compact: boolWhether automatic compaction is enabled.
Trait Implementations§
Source§fn clone(&self) -> SessionFooterSnapshot
fn clone(&self) -> SessionFooterSnapshot
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§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.