pub struct IntentOutline {
pub id: String,
pub criteria: Vec<String>,
pub milestones: Vec<String>,
pub retired: bool,
pub observed_satisfied: Vec<String>,
}Expand description
What coverage needs of one intent: its identity, its criterion ids, its milestones, and whether it is retired (cancelled or superseded) and so owes nothing.
The intent engine builds one of these from each crate::intent::IntentRecord, so the
intent files are read one way and this module never reads them a second time.
use majordomus_cli::intent_plan::IntentOutline;
let outline = IntentOutline {
id: "intent-planning".into(),
criteria: vec!["criteria-are-covered".into()],
milestones: vec!["intent-planning".into()],
..Default::default()
};
assert!(!outline.retired);
assert!(outline.observed_satisfied.is_empty());Fields§
§id: StringThe intent’s identity.
criteria: Vec<String>Its satisfaction criterion ids, in declaration order.
milestones: Vec<String>The milestone ids that realise it.
retired: boolCancelled or superseded: no coverage is required of it.
observed_satisfied: Vec<String>The criteria its recorded gap observed already satisfied, with observations behind
them (intent_review::observed_satisfied): no work is asked of these.
Trait Implementations§
Source§impl Clone for IntentOutline
impl Clone for IntentOutline
Source§fn clone(&self) -> IntentOutline
fn clone(&self) -> IntentOutline
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 IntentOutline
impl Debug for IntentOutline
Source§impl Default for IntentOutline
impl Default for IntentOutline
Source§fn default() -> IntentOutline
fn default() -> IntentOutline
Returns the “default value” for a type. Read more
impl Eq for IntentOutline
Source§impl PartialEq for IntentOutline
impl PartialEq for IntentOutline
Source§fn eq(&self, other: &IntentOutline) -> bool
fn eq(&self, other: &IntentOutline) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntentOutline
Auto Trait Implementations§
impl Freeze for IntentOutline
impl RefUnwindSafe for IntentOutline
impl Send for IntentOutline
impl Sync for IntentOutline
impl Unpin for IntentOutline
impl UnsafeUnpin for IntentOutline
impl UnwindSafe for IntentOutline
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<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.