pub struct IntentRealizedWork {
pub work: IntentWorkUnit,
pub links: Vec<IntentLink>,
pub unlinked: Option<String>,
}Expand description
A unit of work with every intent it realises, or the reason it realises none.
use majordomus_cli::intent_realization::{IntentRealizedWork, IntentWorkKind, IntentWorkUnit};
let w = IntentRealizedWork {
work: IntentWorkUnit::new(IntentWorkKind::Task, "t-1"),
links: vec![],
unlinked: Some("it names no issue".into()),
};
assert!(w.links.is_empty() && w.unlinked.is_some());Fields§
§work: IntentWorkUnitThe work, as recorded.
links: Vec<IntentLink>Every intent it realises, strongest link per issue.
unlinked: Option<String>When it realises none: the first link that is missing.
Trait Implementations§
Source§impl Clone for IntentRealizedWork
impl Clone for IntentRealizedWork
Source§fn clone(&self) -> IntentRealizedWork
fn clone(&self) -> IntentRealizedWork
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 IntentRealizedWork
impl Debug for IntentRealizedWork
Source§impl<'de> Deserialize<'de> for IntentRealizedWork
impl<'de> Deserialize<'de> for IntentRealizedWork
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 IntentRealizedWork
Source§impl JsonSchema for IntentRealizedWork
impl JsonSchema for IntentRealizedWork
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 IntentRealizedWork
impl PartialEq for IntentRealizedWork
Source§fn eq(&self, other: &IntentRealizedWork) -> bool
fn eq(&self, other: &IntentRealizedWork) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentRealizedWork
impl Serialize for IntentRealizedWork
impl StructuralPartialEq for IntentRealizedWork
Auto Trait Implementations§
impl Freeze for IntentRealizedWork
impl RefUnwindSafe for IntentRealizedWork
impl Send for IntentRealizedWork
impl Sync for IntentRealizedWork
impl Unpin for IntentRealizedWork
impl UnsafeUnpin for IntentRealizedWork
impl UnwindSafe for IntentRealizedWork
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.