pub struct WeeklySummary {
pub cost_usd: f64,
pub total_tokens: u64,
pub session_count: usize,
pub today_cost_usd: f64,
}Expand description
Weekly usage summary for the TUI title bar.
Fields§
§cost_usd: f64§total_tokens: u64§session_count: usize§today_cost_usd: f64Trait Implementations§
Source§impl Clone for WeeklySummary
impl Clone for WeeklySummary
Source§impl Debug for WeeklySummary
impl Debug for WeeklySummary
Auto Trait Implementations§
impl Freeze for WeeklySummary
impl RefUnwindSafe for WeeklySummary
impl Send for WeeklySummary
impl Sync for WeeklySummary
impl Unpin for WeeklySummary
impl UnsafeUnpin for WeeklySummary
impl UnwindSafe for WeeklySummary
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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