pub struct HeatmapStats {
pub total_days: usize,
pub active_days: usize,
pub current_streak: usize,
pub longest_streak: usize,
pub busiest_day: Option<(NaiveDate, usize)>,
}Fields§
§total_days: usize§active_days: usize§current_streak: usize§longest_streak: usize§busiest_day: Option<(NaiveDate, usize)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeatmapStats
impl RefUnwindSafe for HeatmapStats
impl Send for HeatmapStats
impl Sync for HeatmapStats
impl Unpin for HeatmapStats
impl UnsafeUnpin for HeatmapStats
impl UnwindSafe for HeatmapStats
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> 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