pub struct IntentPreflightIssue {
pub issue: String,
pub milestone: String,
pub verdict: IntentPreflightVerdict,
pub serves: Vec<String>,
pub intents: Vec<String>,
}Expand description
One issue the work resolved to, and what the preflight concluded about it.
use majordomus_cli::intent::{IntentPreflightIssue, IntentPreflightVerdict};
let i = IntentPreflightIssue {
issue: "I0007".into(),
milestone: "ops".into(),
verdict: IntentPreflightVerdict::Maintenance,
serves: vec![],
intents: vec![],
};
// a milestone no intent names carries maintenance, which is not a refusal
assert_eq!(i.verdict, IntentPreflightVerdict::Maintenance);Fields§
§issue: StringThe issue id.
milestone: StringIts milestone.
verdict: IntentPreflightVerdictWhat the preflight concluded about this issue.
serves: Vec<String>The <intent>#<criterion> references it declares, as declared.
intents: Vec<String>The live intents whose milestones include its milestone, sorted.
Trait Implementations§
Source§impl Clone for IntentPreflightIssue
impl Clone for IntentPreflightIssue
Source§fn clone(&self) -> IntentPreflightIssue
fn clone(&self) -> IntentPreflightIssue
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 moreSource§impl Debug for IntentPreflightIssue
impl Debug for IntentPreflightIssue
Source§impl<'de> Deserialize<'de> for IntentPreflightIssue
impl<'de> Deserialize<'de> for IntentPreflightIssue
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 IntentPreflightIssue
Source§impl JsonSchema for IntentPreflightIssue
impl JsonSchema for IntentPreflightIssue
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 IntentPreflightIssue
impl PartialEq for IntentPreflightIssue
Source§fn eq(&self, other: &IntentPreflightIssue) -> bool
fn eq(&self, other: &IntentPreflightIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentPreflightIssue
impl Serialize for IntentPreflightIssue
impl StructuralPartialEq for IntentPreflightIssue
Auto Trait Implementations§
impl Freeze for IntentPreflightIssue
impl RefUnwindSafe for IntentPreflightIssue
impl Send for IntentPreflightIssue
impl Sync for IntentPreflightIssue
impl Unpin for IntentPreflightIssue
impl UnsafeUnpin for IntentPreflightIssue
impl UnwindSafe for IntentPreflightIssue
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.