pub struct PlanningCycle {
pub description: Option<String>,
pub start_date: Option<String>,
pub due_date: Option<String>,
}Expand description
A named cycle ([cycles.<name>] in tix.toml). The name lives as the
map key; start_date/due_date are optional YYYY-MM-DD strings with
due_date >= start_date when both are present.
Fields§
§description: Option<String>Optional human description.
start_date: Option<String>Optional start date (YYYY-MM-DD).
due_date: Option<String>Optional due date (YYYY-MM-DD); must be >= start_date.
Trait Implementations§
Source§impl Clone for PlanningCycle
impl Clone for PlanningCycle
Source§impl Debug for PlanningCycle
impl Debug for PlanningCycle
Source§impl Default for PlanningCycle
impl Default for PlanningCycle
Source§impl<'de> Deserialize<'de> for PlanningCyclewhere
PlanningCycle: Default,
impl<'de> Deserialize<'de> for PlanningCyclewhere
PlanningCycle: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlanningCycle
Source§impl From<CycleRecord> for PlanningCycle
impl From<CycleRecord> for PlanningCycle
Source§fn from(record: CycleRecord) -> Self
fn from(record: CycleRecord) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlanningCycle
impl PartialEq for PlanningCycle
Source§impl Serialize for PlanningCycle
impl Serialize for PlanningCycle
impl StructuralPartialEq for PlanningCycle
Auto Trait Implementations§
impl Freeze for PlanningCycle
impl RefUnwindSafe for PlanningCycle
impl Send for PlanningCycle
impl Sync for PlanningCycle
impl Unpin for PlanningCycle
impl UnsafeUnpin for PlanningCycle
impl UnwindSafe for PlanningCycle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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