pub enum BindingCause {
Show 16 variants
UnknownIssue,
NoIssueCoversPaths,
IssueServesNothing,
ServesAnotherIntent,
ServesUnknownCriterion,
IntentNotCritiqued,
OpenBlockingFinding,
NothingNamed,
UnknownIntent,
IntentRetired,
IntentHasNoOpenWork,
IssueOutsideIntent,
AmbiguousIntent,
UnknownExemption,
ExemptionWithoutReason,
ExemptionNamesWork,
}Expand description
Why a binding was refused, as a word a reader greps for. The first seven are the preflight’s own causes, carried through unchanged; the rest are what only a binding can find.
use majordomus_cli::intent::IntentPreflightCause;
use majordomus_cli::intent_binding::BindingCause;
// a preflight cause keeps its word
assert_eq!(
serde_json::to_string(&BindingCause::from(IntentPreflightCause::IntentNotCritiqued)).unwrap(),
serde_json::to_string(&IntentPreflightCause::IntentNotCritiqued).unwrap(),
);Variants§
UnknownIssue
The issue named is not an issue of the plan.
NoIssueCoversPaths
No open issue’s scope covers any of the paths.
IssueServesNothing
The issue’s milestone realises a live intent and the issue serves none of its criteria.
ServesAnotherIntent
The issue serves a criterion of an intent whose milestones do not include its own.
ServesUnknownCriterion
The issue serves an intent or a criterion that does not exist.
IntentNotCritiqued
An intent the work serves has no critique.
OpenBlockingFinding
The critique of an intent the work serves has a blocking finding still open.
NothingNamed
Nothing was named: no issue, no intent, no paths and no exemption.
UnknownIntent
The intent named is not an intent of this repository.
IntentRetired
The intent named is cancelled or superseded.
IntentHasNoOpenWork
The intent named has no open issue serving it, so there is no work to be bound to.
IssueOutsideIntent
The issue named serves none of the criteria of the intent named beside it.
AmbiguousIntent
Paths alone reached more than one intent; the worker must name the issue.
UnknownExemption
The exemption class is not one the policy declares.
ExemptionWithoutReason
An exemption was given with no reason.
ExemptionNamesWork
An exemption was given beside an issue or an intent: work is one or the other.
Trait Implementations§
Source§impl Clone for BindingCause
impl Clone for BindingCause
Source§fn clone(&self) -> BindingCause
fn clone(&self) -> BindingCause
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BindingCause
Source§impl Debug for BindingCause
impl Debug for BindingCause
Source§impl<'de> Deserialize<'de> for BindingCause
impl<'de> Deserialize<'de> for BindingCause
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>,
impl Eq for BindingCause
Source§impl From<IntentPreflightCause> for BindingCause
impl From<IntentPreflightCause> for BindingCause
Source§fn from(c: IntentPreflightCause) -> Self
fn from(c: IntentPreflightCause) -> Self
Source§impl JsonSchema for BindingCause
impl JsonSchema for BindingCause
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for BindingCause
impl PartialEq for BindingCause
Source§fn eq(&self, other: &BindingCause) -> bool
fn eq(&self, other: &BindingCause) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BindingCause
impl Serialize for BindingCause
impl StructuralPartialEq for BindingCause
Auto Trait Implementations§
impl Freeze for BindingCause
impl RefUnwindSafe for BindingCause
impl Send for BindingCause
impl Sync for BindingCause
impl Unpin for BindingCause
impl UnsafeUnpin for BindingCause
impl UnwindSafe for BindingCause
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.