#[non_exhaustive]pub enum ResolvedVerificationTarget {
Hypothesis(String),
KnowledgeOnly,
}Expand description
Plan-time resolution of the claim an action outcome may transition.
The planner resolves both VerificationTarget::Motivation and
VerificationTarget::Distinct to an existing hypothesis identity.
Self::KnowledgeOnly deliberately resolves to no transition target; the
motivating hypothesis remains available separately on PlanStep for
utility provenance and audit correlation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hypothesis(String)
A conclusive outcome may transition this pre-existing hypothesis.
KnowledgeOnly
The action outcome is auditable but cannot transition a hypothesis.
Implementations§
Source§impl ResolvedVerificationTarget
impl ResolvedVerificationTarget
Sourcepub fn hypothesis_id(&self) -> Option<&str>
pub fn hypothesis_id(&self) -> Option<&str>
Returns the hypothesis a conclusive outcome may transition, if any.
Sourcepub fn applies_hypothesis_transition(&self) -> bool
pub fn applies_hypothesis_transition(&self) -> bool
Returns whether this target authorizes a hypothesis-state transition.
Trait Implementations§
Source§impl Clone for ResolvedVerificationTarget
impl Clone for ResolvedVerificationTarget
Source§fn clone(&self) -> ResolvedVerificationTarget
fn clone(&self) -> ResolvedVerificationTarget
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 ResolvedVerificationTarget
impl Debug for ResolvedVerificationTarget
impl Eq for ResolvedVerificationTarget
impl StructuralPartialEq for ResolvedVerificationTarget
Auto Trait Implementations§
impl Freeze for ResolvedVerificationTarget
impl RefUnwindSafe for ResolvedVerificationTarget
impl Send for ResolvedVerificationTarget
impl Sync for ResolvedVerificationTarget
impl Unpin for ResolvedVerificationTarget
impl UnsafeUnpin for ResolvedVerificationTarget
impl UnwindSafe for ResolvedVerificationTarget
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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
Checks if this value is equivalent to the given key. Read more
§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.§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
Checks if this value is equivalent to the given key. Read more