pub struct Day {
pub date: NaiveDate,
pub workday: Option<Workday>,
pub intervals: Vec<Interval>,
pub work_seconds: i64,
pub productivity: Option<f64>,
pub below_threshold: bool,
pub dropped: Dropped,
pub tasks: Vec<Task>,
pub inbox: InboxCounts,
}Expand description
One day: kasl report.
Fields§
§date: NaiveDate§workday: Option<Workday>null for a day nothing was recorded on.
intervals: Vec<Interval>The intervals the report counts, short ones already left out.
work_seconds: i64The sum of intervals.
productivity: Option<f64>§below_threshold: boolWhether productivity is below the configured minimum - the gate report --send enforces.
dropped: DroppedThe short intervals intervals leaves out.
tasks: Vec<Task>§inbox: InboxCountsTrait Implementations§
Auto Trait Implementations§
impl Freeze for Day
impl RefUnwindSafe for Day
impl Send for Day
impl Sync for Day
impl Unpin for Day
impl UnsafeUnpin for Day
impl UnwindSafe for Day
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