pub struct Aggregate {
pub total: usize,
pub done: usize,
pub progress: f32,
pub time_spent: Duration,
pub estimate: Duration,
pub remaining: Duration,
pub earliest_due: Option<Due>,
pub assignees: BTreeSet<Id>,
pub status: Status,
pub by_status: BTreeMap<Status, usize>,
}Fields§
§total: usize§done: usize§progress: f32§time_spent: Duration§estimate: Duration§remaining: DurationEstimate summed over tasks whose Status is not Done — the TUI’s
eta projection input (spec: no partial credit for TimeSpent).
earliest_due: Option<Due>§assignees: BTreeSet<Id>§status: StatusWorst-case (lowest-rank) Status over the task + its descendants —
only Done when every task in the subtree is Done.
by_status: BTreeMap<Status, usize>Count of subtree tasks at each Status.
Trait Implementations§
impl StructuralPartialEq for Aggregate
Auto Trait Implementations§
impl Freeze for Aggregate
impl RefUnwindSafe for Aggregate
impl Send for Aggregate
impl Sync for Aggregate
impl Unpin for Aggregate
impl UnsafeUnpin for Aggregate
impl UnwindSafe for Aggregate
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