pub enum IntentPreflightCause {
UnknownIssue,
NoIssueCoversPaths,
IssueServesNothing,
ServesAnotherIntent,
ServesUnknownCriterion,
IntentNotCritiqued,
OpenBlockingFinding,
}Expand description
Why a preflight refused, as a word a reader greps for.
use majordomus_cli::intent::IntentPreflightCause;
assert_eq!(
serde_json::to_string(&IntentPreflightCause::OpenBlockingFinding).unwrap(),
"\"open_blocking_finding\""
);
assert_ne!(
IntentPreflightCause::IntentNotCritiqued,
IntentPreflightCause::IssueServesNothing
);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, or a token that is not
<intent>#<criterion>.
IntentNotCritiqued
An intent the issue serves has no critique: its plan was never reviewed.
OpenBlockingFinding
The critique of an intent the issue serves has a blocking finding still open.
Trait Implementations§
Source§impl Clone for IntentPreflightCause
impl Clone for IntentPreflightCause
Source§fn clone(&self) -> IntentPreflightCause
fn clone(&self) -> IntentPreflightCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntentPreflightCause
Source§impl Debug for IntentPreflightCause
impl Debug for IntentPreflightCause
Source§impl<'de> Deserialize<'de> for IntentPreflightCause
impl<'de> Deserialize<'de> for IntentPreflightCause
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
impl Eq for IntentPreflightCause
Source§impl From<IntentPreflightCause> for BindingCause
impl From<IntentPreflightCause> for BindingCause
Source§fn from(c: IntentPreflightCause) -> Self
fn from(c: IntentPreflightCause) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for IntentPreflightCause
impl JsonSchema for IntentPreflightCause
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for IntentPreflightCause
impl PartialEq for IntentPreflightCause
Source§fn eq(&self, other: &IntentPreflightCause) -> bool
fn eq(&self, other: &IntentPreflightCause) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentPreflightCause
impl Serialize for IntentPreflightCause
impl StructuralPartialEq for IntentPreflightCause
Auto Trait Implementations§
impl Freeze for IntentPreflightCause
impl RefUnwindSafe for IntentPreflightCause
impl Send for IntentPreflightCause
impl Sync for IntentPreflightCause
impl Unpin for IntentPreflightCause
impl UnsafeUnpin for IntentPreflightCause
impl UnwindSafe for IntentPreflightCause
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
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
Compare self to
key and return true if they are equal.