pub struct Stats {
pub total: usize,
pub git_projects: usize,
pub failed: usize,
pub ignored_for_top_commands: usize,
pub top_commands: Vec<(String, usize)>,
pub top_dirs: Vec<(String, usize)>,
pub top_projects: Vec<(String, usize)>,
pub top_shells: Vec<(String, usize)>,
pub daily: Vec<(String, usize)>,
}Expand description
Statistiques agrégées.
Fields§
§total: usize§git_projects: usize§failed: usize§ignored_for_top_commands: usizeNombre de commandes non comptées dans le Top commandes (tokens parasites, commentaires, lignes vides…).
top_commands: Vec<(String, usize)>§top_dirs: Vec<(String, usize)>§top_projects: Vec<(String, usize)>§top_shells: Vec<(String, usize)>Top shells utilisés (bash, zsh…).
daily: Vec<(String, usize)>Nombre de commandes par jour (YYYY-MM-DD → total), triées par date.
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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