pub struct CycleRecord {
pub name: String,
pub description: Option<String>,
pub start_date: Option<String>,
pub due_date: Option<String>,
pub schedule_id: Option<String>,
pub sequence: Option<u32>,
pub state: Option<String>,
}Expand description
One cycle as stored in docs/cycles/<name>.md frontmatter.
§A generated cycle is a cycle
A cycle that a schedule generated carries its stable identity in the three
optional fields below — the schedule it came from, its sequence within that
schedule, and its own lifecycle state. They are optional and omitted when absent,
so a hand-written cycle’s file is byte-identical to what it was before this
existed, and deny_unknown_fields still holds: a generated cycle is the same
record kind, not a second format.
That is what makes the compatiblity requirement work: an issue’s cycles value is
a name, so a generated cycle must be resolvable by name through the normal
cycle machinery (readers, the picker, tix cycle show). Its identity rides beside
that name rather than replacing it, and the name stays mutable without touching
the identity (C-002/C-003).
Fields§
§name: StringThe cycle’s name (identity for a hand-written cycle; a mutable reference label for a generated one).
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).
schedule_id: Option<String>The schedule that generated this cycle, by stable id. Absent on a hand-written cycle.
sequence: Option<u32>The stable sequence of this cycle within its schedule. Absent on a hand-written cycle.
state: Option<String>The generated cycle’s lifecycle state (active/closed/paused/skipped).
Absent on a hand-written cycle.
Trait Implementations§
Source§impl Clone for CycleRecord
impl Clone for CycleRecord
Source§impl Debug for CycleRecord
impl Debug for CycleRecord
Source§impl Default for CycleRecord
impl Default for CycleRecord
Source§impl<'de> Deserialize<'de> for CycleRecordwhere
CycleRecord: Default,
impl<'de> Deserialize<'de> for CycleRecordwhere
CycleRecord: 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>,
impl Eq for CycleRecord
Source§impl From<CycleRecord> for PlanningCycle
impl From<CycleRecord> for PlanningCycle
Source§fn from(record: CycleRecord) -> Self
fn from(record: CycleRecord) -> Self
Source§impl HasName for CycleRecord
impl HasName for CycleRecord
Source§impl PartialEq for CycleRecord
impl PartialEq for CycleRecord
Source§impl Serialize for CycleRecord
impl Serialize for CycleRecord
impl StructuralPartialEq for CycleRecord
Auto Trait Implementations§
impl Freeze for CycleRecord
impl RefUnwindSafe for CycleRecord
impl Send for CycleRecord
impl Sync for CycleRecord
impl Unpin for CycleRecord
impl UnsafeUnpin for CycleRecord
impl UnwindSafe for CycleRecord
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,
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
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