pub struct IntentWorkRef {
pub kind: IntentWorkKind,
pub id: String,
pub outcome: String,
pub provenance: IntentLinkProvenance,
pub providers: Vec<String>,
pub handovers: usize,
}Expand description
A unit of work as one intent sees it: which record, how it stands, and the strongest link.
use majordomus_cli::intent_realization::{IntentLinkProvenance, IntentWorkKind, IntentWorkRef};
let r = IntentWorkRef {
kind: IntentWorkKind::Task, id: "t-1".into(), outcome: "active".into(),
provenance: IntentLinkProvenance::Observed, providers: vec!["codex".into()],
handovers: 1,
};
assert_eq!(r.handovers, 1);Fields§
§kind: IntentWorkKindWhich record.
id: StringIts identity there.
outcome: StringWhere it stands.
provenance: IntentLinkProvenanceThe strongest of its links to this intent.
providers: Vec<String>The providers that ran it.
handovers: usizeHow many handovers carried it.
Trait Implementations§
Source§impl Clone for IntentWorkRef
impl Clone for IntentWorkRef
Source§fn clone(&self) -> IntentWorkRef
fn clone(&self) -> IntentWorkRef
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 IntentWorkRef
impl Debug for IntentWorkRef
Source§impl<'de> Deserialize<'de> for IntentWorkRef
impl<'de> Deserialize<'de> for IntentWorkRef
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 IntentWorkRef
Source§impl JsonSchema for IntentWorkRef
impl JsonSchema for IntentWorkRef
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 Ordered for IntentWorkRef
The work realising an intent reads strongest link first, then by the record it came from,
then by its identity.
impl Ordered for IntentWorkRef
The work realising an intent reads strongest link first, then by the record it came from, then by its identity.
Source§impl PartialEq for IntentWorkRef
impl PartialEq for IntentWorkRef
Source§fn eq(&self, other: &IntentWorkRef) -> bool
fn eq(&self, other: &IntentWorkRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentWorkRef
impl Serialize for IntentWorkRef
impl StructuralPartialEq for IntentWorkRef
Auto Trait Implementations§
impl Freeze for IntentWorkRef
impl RefUnwindSafe for IntentWorkRef
impl Send for IntentWorkRef
impl Sync for IntentWorkRef
impl Unpin for IntentWorkRef
impl UnsafeUnpin for IntentWorkRef
impl UnwindSafe for IntentWorkRef
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.