pub struct StatsStore {
pub total_commands: u64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub first_use: Option<String>,
pub last_use: Option<String>,
pub commands: HashMap<String, CommandStats>,
pub daily: Vec<DayStats>,
pub cep: CepStats,
}Fields§
§total_commands: u64§total_input_tokens: u64§total_output_tokens: u64§first_use: Option<String>§last_use: Option<String>§commands: HashMap<String, CommandStats>§daily: Vec<DayStats>§cep: CepStatsTrait Implementations§
Source§impl Default for StatsStore
impl Default for StatsStore
Source§fn default() -> StatsStore
fn default() -> StatsStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatsStore
impl<'de> Deserialize<'de> for StatsStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatsStore
impl RefUnwindSafe for StatsStore
impl Send for StatsStore
impl Sync for StatsStore
impl Unpin for StatsStore
impl UnsafeUnpin for StatsStore
impl UnwindSafe for StatsStore
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