pub struct DayStats {
pub date: String,
pub commands: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub version: String,
pub compressible_input_tokens: u64,
pub compressible_output_tokens: u64,
}Expand description
Daily aggregate: command count and token totals for one calendar day.
Fields§
§date: String§commands: u64§input_tokens: u64§output_tokens: u64§version: Stringlean-ctx version active when this day’s stats were last recorded.
Lets lean-ctx gain attribute per-day compression changes to a release
(#307). Empty for days recorded before this field existed.
compressible_input_tokens: u64Tokens from operations classified as Compressible (file reads, shell
output). Excludes terminal polling, meta-tools, and stream-tracking to
give the dashboard an undiluted compression rate.
compressible_output_tokens: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for DayStats
impl<'de> Deserialize<'de> for DayStats
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DayStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DayStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DayStats
impl Serialize for DayStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DayStats
Auto Trait Implementations§
impl Forget for DayStats
impl Freeze for DayStats
impl Move for DayStats
impl RefUnwindSafe for DayStats
impl Send for DayStatswhere
RawVecInner: Send,
impl Sync for DayStatswhere
RawVecInner: Sync,
impl Unpin for DayStats
impl UnsafeUnpin for DayStats
impl UnwindSafe for DayStatswhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more