pub struct DayReport {
pub date: NaiveDate,
pub workday: Option<Workday>,
pub intervals: Vec<WorkInterval>,
pub work: Duration,
pub productivity: Option<f64>,
pub threshold: Option<f64>,
pub below_threshold: bool,
pub dropped: Option<ShortIntervalsInfo>,
pub tasks: Vec<Task>,
pub inbox: InboxCounts,
}Expand description
Everything kasl report says about one day, read once for every way of printing it.
The table and --json are two renderings of this, not two readings of the
database, so they cannot disagree about a day.
Fields§
§date: NaiveDate§workday: Option<Workday>None for a day nothing was recorded on.
intervals: Vec<WorkInterval>The intervals the report counts, short ones already left out.
work: DurationThe sum of intervals.
productivity: Option<f64>§threshold: Option<f64>The configured minimum, when there is a day to hold to it.
below_threshold: boolWhether the day is below the minimum yet - see Productivity::is_below_threshold.
dropped: Option<ShortIntervalsInfo>The short intervals intervals leaves out.
tasks: Vec<Task>§inbox: InboxCountsImplementations§
Auto Trait Implementations§
impl Freeze for DayReport
impl RefUnwindSafe for DayReport
impl Send for DayReport
impl Sync for DayReport
impl Unpin for DayReport
impl UnsafeUnpin for DayReport
impl UnwindSafe for DayReport
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