pub trait Condition {
type Issue;
// Required method
fn satisfied_by(&self, issue: &Self::Issue) -> bool;
}Expand description
Trait for issue metadata conditions
A Condition represents a predicate for an issue state: a function mapping
an issue to a boolean value indicating whether the condition is fulfilled or
not. It is generally assumed that a condition consists of “condition atoms”,
which each specify a “singular” condition on a specific piece of metadata.
Whatever is used as type for conditions on metadata has to implement this
trait. It enables IssueStates to evaluate the condition. Additionally, the
ConditionFactory trait should be implemented in order to enable parsing
conditions from configuration files.
Required Associated Types§
Required Methods§
Sourcefn satisfied_by(&self, issue: &Self::Issue) -> bool
fn satisfied_by(&self, issue: &Self::Issue) -> bool
Check whether the condition is satisfied by the issue provided