pub enum IntentOutcome {
Cleared,
Blocked {
reason: String,
},
ClarificationRequired {
question: String,
},
Deferred {
condition: String,
},
}Expand description
Pre-flight validation outcome for a declared intent.
Variants§
Cleared
Intent is clear — action may proceed
Blocked
Intent is blocked — action must not proceed
ClarificationRequired
Intent needs clarification before proceeding
Deferred
Intent is deferred — retry after condition is met
Implementations§
Trait Implementations§
Source§impl Clone for IntentOutcome
impl Clone for IntentOutcome
Source§fn clone(&self) -> IntentOutcome
fn clone(&self) -> IntentOutcome
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 IntentOutcome
impl Debug for IntentOutcome
Source§impl<'de> Deserialize<'de> for IntentOutcome
impl<'de> Deserialize<'de> for IntentOutcome
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 IntentOutcome
Source§impl PartialEq for IntentOutcome
impl PartialEq for IntentOutcome
Source§fn eq(&self, other: &IntentOutcome) -> bool
fn eq(&self, other: &IntentOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentOutcome
impl Serialize for IntentOutcome
impl StructuralPartialEq for IntentOutcome
Auto Trait Implementations§
impl Freeze for IntentOutcome
impl RefUnwindSafe for IntentOutcome
impl Send for IntentOutcome
impl Sync for IntentOutcome
impl Unpin for IntentOutcome
impl UnsafeUnpin for IntentOutcome
impl UnwindSafe for IntentOutcome
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.