pub struct CycleEntry {
pub name: String,
pub description: String,
pub start_date: Option<String>,
pub due_date: Option<String>,
pub progress: Progress,
}Expand description
One cycle as the mode lists it: identity, dates, and its issue statistics.
Fields§
§name: String§description: String§start_date: Option<String>§due_date: Option<String>§progress: ProgressImplementations§
Source§impl CycleEntry
impl CycleEntry
Sourcepub fn group(&self, today: &str) -> CycleGroup
pub fn group(&self, today: &str) -> CycleGroup
Which chronological group this cycle belongs to on today.
A passed due date wins outright (a cycle is archived the day after it
ends, even if its start is somehow in the future); otherwise a start
date still ahead makes it future; everything else — including the
implicit Default with no dates — is current.
Trait Implementations§
Source§impl Clone for CycleEntry
impl Clone for CycleEntry
Source§impl Debug for CycleEntry
impl Debug for CycleEntry
impl Eq for CycleEntry
Source§impl PartialEq for CycleEntry
impl PartialEq for CycleEntry
impl StructuralPartialEq for CycleEntry
Auto Trait Implementations§
impl Freeze for CycleEntry
impl RefUnwindSafe for CycleEntry
impl Send for CycleEntry
impl Sync for CycleEntry
impl Unpin for CycleEntry
impl UnsafeUnpin for CycleEntry
impl UnwindSafe for CycleEntry
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
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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