pub struct PlanningConfig {
pub cycle_number: u32,
pub default_cycle: Option<String>,
pub default_milestone: Option<String>,
pub default_team: Option<String>,
}Expand description
The [planning] section: the monotonic auto-cycle counter plus the
picker presets written by tix init (contracts/tix-toml-planning.md).
cycle_number is the next auto “Cycle N” number: it starts at 1, is bumped
on every unnamed cycle create, and never decrements (FR-003,
DM-01M311BJKMN3PPCR9GR9Y7ESD2). Contrary to the legacy [state] counter,
this section is serialized once mutated.
Fields§
§cycle_number: u32Monotonic next auto-cycle number; >= 1. Default 1.
default_cycle: Option<String>Optional picker preset naming a cycle.
default_milestone: Option<String>Optional picker preset naming a milestone.
default_team: Option<String>Optional picker preset naming a team.
Implementations§
Source§impl PlanningConfig
impl PlanningConfig
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this section is untouched (all values at their defaults); such
a section is not written to disk so legacy tix.toml files keep
round-tripping byte-identically (NFR-003).
Trait Implementations§
Source§impl Clone for PlanningConfig
impl Clone for PlanningConfig
Source§impl Debug for PlanningConfig
impl Debug for PlanningConfig
Source§impl Default for PlanningConfig
impl Default for PlanningConfig
Source§impl<'de> Deserialize<'de> for PlanningConfigwhere
PlanningConfig: Default,
impl<'de> Deserialize<'de> for PlanningConfigwhere
PlanningConfig: 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 PlanningConfig
Source§impl PartialEq for PlanningConfig
impl PartialEq for PlanningConfig
Source§impl Serialize for PlanningConfig
impl Serialize for PlanningConfig
impl StructuralPartialEq for PlanningConfig
Auto Trait Implementations§
impl Freeze for PlanningConfig
impl RefUnwindSafe for PlanningConfig
impl Send for PlanningConfig
impl Sync for PlanningConfig
impl Unpin for PlanningConfig
impl UnsafeUnpin for PlanningConfig
impl UnwindSafe for PlanningConfig
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