pub struct IntentPreflightIntent {
pub id: String,
pub title: String,
pub stage: IntentStage,
pub statement: String,
pub criteria: Vec<IntentCriterion>,
pub invariants: Vec<String>,
pub non_goals: Vec<String>,
pub governance: Vec<String>,
pub critique: Option<IntentPreflightCritique>,
pub gap: Option<IntentPreflightGap>,
}Expand description
One intent the work is held to, with what a worker needs before touching it: the statement, the criteria the work serves with the live state of their evidence, the invariants and non-goals, the governance, the critique and the gap. Only the intents the work reaches are carried, never every intent.
use majordomus_cli::intent::{IntentPreflightIntent, IntentStage};
let i = IntentPreflightIntent {
id: "x".into(),
title: "X".into(),
stage: IntentStage::Planned,
statement: "It becomes true.".into(),
criteria: vec![],
invariants: vec![],
non_goals: vec![],
governance: vec![],
critique: None,
gap: None,
};
// no critique recorded is carried as an absence, never as an empty review
assert!(i.critique.is_none());Fields§
§id: StringThe identity.
title: StringOne line.
stage: IntentStageIts derived stage.
statement: StringWhat must become true.
criteria: Vec<IntentCriterion>The criteria the work serves, each with the state of its evidence now, in the intent’s order.
invariants: Vec<String>What must stay true.
non_goals: Vec<String>What is deliberately not required.
governance: Vec<String>The governance a worker on this intent loads.
critique: Option<IntentPreflightCritique>The critique of its plan; absent when none was ever recorded.
gap: Option<IntentPreflightGap>Its recorded gap, bounded to the criteria above; absent when none was recorded.
Trait Implementations§
Source§impl Clone for IntentPreflightIntent
impl Clone for IntentPreflightIntent
Source§fn clone(&self) -> IntentPreflightIntent
fn clone(&self) -> IntentPreflightIntent
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 IntentPreflightIntent
impl Debug for IntentPreflightIntent
Source§impl<'de> Deserialize<'de> for IntentPreflightIntent
impl<'de> Deserialize<'de> for IntentPreflightIntent
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 IntentPreflightIntent
Source§impl JsonSchema for IntentPreflightIntent
impl JsonSchema for IntentPreflightIntent
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 IntentPreflightIntent
impl PartialEq for IntentPreflightIntent
Source§fn eq(&self, other: &IntentPreflightIntent) -> bool
fn eq(&self, other: &IntentPreflightIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentPreflightIntent
impl Serialize for IntentPreflightIntent
impl StructuralPartialEq for IntentPreflightIntent
Auto Trait Implementations§
impl Freeze for IntentPreflightIntent
impl RefUnwindSafe for IntentPreflightIntent
impl Send for IntentPreflightIntent
impl Sync for IntentPreflightIntent
impl Unpin for IntentPreflightIntent
impl UnsafeUnpin for IntentPreflightIntent
impl UnwindSafe for IntentPreflightIntent
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.