pub struct IssueState<C>{
pub conditions: Vec<C>,
pub relations: StateRelations<C>,
/* private fields */
}Expand description
Representaiton of an issue state
An issue state is a named transient property depending on an issue’s
metadata. For a given issue, a state is either enabled or disabled based on
the Conditions attached to state. Additionally, a state may or may not be
related to other issues. Those relations affect whether a state is selected
by a resolver for a given issue, provided that it is enabled for saif issue.
Fields§
§conditions: Vec<C>Metadata conditions of the state
relations: StateRelations<C>Relations to ther states
Implementations§
Source§impl<C> IssueState<C>
impl<C> IssueState<C>
Sourcepub fn add_extended<I>(&mut self, dependencies: I)
pub fn add_extended<I>(&mut self, dependencies: I)
Add states on which this state depends on
Sourcepub fn add_overridden<I>(&mut self, overridden_by: I)
pub fn add_overridden<I>(&mut self, overridden_by: I)
Add states which will override this state
Sourcepub fn conditions_satisfied(&self, issue: &C::Issue) -> bool
pub fn conditions_satisfied(&self, issue: &C::Issue) -> bool
Check whether all conditions of the state are satisfied for an issue
§Note:
Conditions inherited from states extended by this state are not considered. Thus, this function alone can not be used for assessing whether the state is enabled or not.