pub enum TimeTotalState {
InvalidFilter,
UnknownIssue,
Nothing,
Unknown,
Recorded,
}Expand description
The explicit state of a TimeTotal (T015).
Derived from the total’s own fields, never stored, so a surface can branch on a
typed answer instead of inferring one from 0 — which is the whole point: a
zero-minute total and an empty scope are different facts, and so are a refused
filter and an unknown issue.
Variants§
InvalidFilter
The filter was refused before any entry was evaluated; the findings say why.
UnknownIssue
The issue selector named an issue this snapshot does not hold.
Nothing
The scope selected no entry at all — no entry belonged to it, or a period placed none of the entries it selected (a date outside the period is simply not in it).
Unknown
The scope selected entries and no usable number came back: every selected
entry was malformed, or the period could not place the valid ones it selected
because they carry no date. Never reported as zero, and never as Nothing —
this scope did select real entries (C-005).
Recorded
At least one entry was counted; total_minutes is its sum, where Some(0)
means a zero was genuinely recorded. is_partial says whether some selected
entry was left out of it.
Implementations§
Trait Implementations§
Source§impl Clone for TimeTotalState
impl Clone for TimeTotalState
impl Copy for TimeTotalState
Source§impl Debug for TimeTotalState
impl Debug for TimeTotalState
impl Eq for TimeTotalState
Source§impl Hash for TimeTotalState
impl Hash for TimeTotalState
Source§impl PartialEq for TimeTotalState
impl PartialEq for TimeTotalState
impl StructuralPartialEq for TimeTotalState
Auto Trait Implementations§
impl Freeze for TimeTotalState
impl RefUnwindSafe for TimeTotalState
impl Send for TimeTotalState
impl Sync for TimeTotalState
impl Unpin for TimeTotalState
impl UnsafeUnpin for TimeTotalState
impl UnwindSafe for TimeTotalState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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