pub struct Intention {Show 15 fields
pub id: String,
pub mandate_id: String,
pub decision_cycle_id: String,
pub goal_run_id: String,
pub description: String,
pub rationale: String,
pub value_criterion: Option<String>,
pub expected_benefit: Option<String>,
pub risk: Option<String>,
pub invalidation_criteria: Option<String>,
pub format_key: Option<String>,
pub status: IntentionStatus,
pub created_at: String,
pub updated_at: String,
pub completed_at: Option<String>,
}Fields§
§id: String§mandate_id: String§decision_cycle_id: String§goal_run_id: String§description: String§rationale: String§value_criterion: Option<String>Exact owner-authored success criterion this one-cycle commitment is
intended to advance. None is retained only for pre-value-contract
records created before this field existed.
expected_benefit: Option<String>§risk: Option<String>§invalidation_criteria: Option<String>§format_key: Option<String>The canonical format this ACT tries ([a-z0-9_-]{1,64}), so later
outcomes can be grouped by format. None is “untagged”.
status: IntentionStatus§created_at: String§updated_at: String§completed_at: Option<String>Implementations§
Source§impl Intention
impl Intention
pub fn new( mandate_id: &str, decision_cycle_id: &str, goal_run_id: &str, description: &str, rationale: &str, ) -> Self
pub fn validate_content_bounds(&self) -> Result<(), String>
Sourcepub fn validate_value_against(&self, mandate: &Mandate) -> Result<(), String>
pub fn validate_value_against(&self, mandate: &Mandate) -> Result<(), String>
Validate the typed value judgment required before an ACT may be persisted for a value-contract mandate. The criterion is matched by the state store against immutable owner policy; this method owns the content-presence half of that contract. The whole value contract against the owner’s policy: when the mandate names success criteria, the intention carries a complete value contract whose criterion is one of them, word for word.
pub fn validate_value_contract(&self) -> Result<(), String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intention
impl<'de> Deserialize<'de> for Intention
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 Intention
impl StructuralPartialEq for Intention
Auto Trait Implementations§
impl Forget for Intention
impl Freeze for Intention
impl Move for Intention
impl RefUnwindSafe for Intention
impl Send for Intentionwhere
RawVecInner: Send,
impl Sync for Intentionwhere
RawVecInner: Sync,
impl Unpin for Intention
impl UnsafeUnpin for Intention
impl UnwindSafe for Intentionwhere
RawVecInner: UnwindSafe,
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more