Trait issue_states::resolution::Resolvable
source · pub trait Resolvable<C>where
C: Condition,{
fn issue_state(&self, issue: &C::Issue) -> Result<Option<Arc<IssueState<C>>>>;
}
Expand description
Trait providing operation for resolving issues’ states
Implementations of trait provide the reesolution of an issue’s state. It is generally assumed that the implementation encapsulates the states considered for the resolution. For example, this may be implemented for containers of issue states.
Required Methods§
sourcefn issue_state(&self, issue: &C::Issue) -> Result<Option<Arc<IssueState<C>>>>
fn issue_state(&self, issue: &C::Issue) -> Result<Option<Arc<IssueState<C>>>>
Resolve the state for a given issue
Given an issue, this function will yield the state selected for it out
of the issue states encapsulated in self
–if any of the states is
enabled for the issue.
If no state is enabled for the given issue, this function will yield
None
.