pub struct GoalPolicy {
pub auto_close: bool,
pub auto_reopen: bool,
}Expand description
Policy controlling goal auto-close and auto-reopen behavior.
Fields§
§auto_close: boolAuto-close a goal when all active children are done/archived.
auto_reopen: boolAuto-reopen a done goal when an open/doing child appears.
Implementations§
Source§impl GoalPolicy
impl GoalPolicy
Sourcepub const fn from_project_config(config: &ProjectConfig) -> Self
pub const fn from_project_config(config: &ProjectConfig) -> Self
Map project-level config into a goal policy.
goals.auto_complete = true enables both auto-close and auto-reopen.
goals.auto_complete = false disables both.
Sourcepub fn apply_override(self, override_policy: GoalPolicyOverride) -> Self
pub fn apply_override(self, override_policy: GoalPolicyOverride) -> Self
Apply per-goal overrides on top of project defaults.
Trait Implementations§
Source§impl Clone for GoalPolicy
impl Clone for GoalPolicy
Source§fn clone(&self) -> GoalPolicy
fn clone(&self) -> GoalPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoalPolicy
impl Debug for GoalPolicy
Source§impl Default for GoalPolicy
impl Default for GoalPolicy
Source§impl<'de> Deserialize<'de> for GoalPolicy
impl<'de> Deserialize<'de> for GoalPolicy
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
Source§impl PartialEq for GoalPolicy
impl PartialEq for GoalPolicy
Source§impl Serialize for GoalPolicy
impl Serialize for GoalPolicy
impl Copy for GoalPolicy
impl Eq for GoalPolicy
impl StructuralPartialEq for GoalPolicy
Auto Trait Implementations§
impl Freeze for GoalPolicy
impl RefUnwindSafe for GoalPolicy
impl Send for GoalPolicy
impl Sync for GoalPolicy
impl Unpin for GoalPolicy
impl UnsafeUnpin for GoalPolicy
impl UnwindSafe for GoalPolicy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.