pub struct ProductivityStats {
pub version: u32,
pub first_task_completed_at: Option<String>,
pub last_updated_at: String,
pub daily: BTreeMap<String, DayStats>,
pub streak: StreakInfo,
pub total_completed: u64,
pub milestones: Vec<Milestone>,
}Expand description
Root productivity data structure
Fields§
§version: u32Schema version for migrations
first_task_completed_at: Option<String>When stats were first created
last_updated_at: StringLast update timestamp
daily: BTreeMap<String, DayStats>Daily completion records (YYYY-MM-DD -> DayStats)
streak: StreakInfoCurrent streak information
total_completed: u64Total completed task counter for milestones
milestones: Vec<Milestone>Milestones achieved
Trait Implementations§
Source§impl Clone for ProductivityStats
impl Clone for ProductivityStats
Source§fn clone(&self) -> ProductivityStats
fn clone(&self) -> ProductivityStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductivityStats
impl Debug for ProductivityStats
Source§impl Default for ProductivityStats
impl Default for ProductivityStats
Source§impl<'de> Deserialize<'de> for ProductivityStats
impl<'de> Deserialize<'de> for ProductivityStats
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 ProductivityStats
impl RefUnwindSafe for ProductivityStats
impl Send for ProductivityStats
impl Sync for ProductivityStats
impl Unpin for ProductivityStats
impl UnsafeUnpin for ProductivityStats
impl UnwindSafe for ProductivityStats
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