#[non_exhaustive]pub enum TargetError {
Ambiguous {
candidate_count: usize,
},
Missing {
token: TargetToken,
},
Unauthorized {
token: TargetToken,
},
Stale {
token: TargetToken,
issued_revision: CaseRevision,
current_revision: CaseRevision,
},
MentionUnresolved {
workflow: WorkflowKey,
},
NoActiveInteraction,
PolicyMismatch {
operation: OperationKey,
},
}Expand description
Target resolution failed for an act (spec §12).
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.
Ambiguous
Several authorized cases match; a selection interaction is required.
Missing
The token was issued this turn but the case is gone.
Fields
§
token: TargetTokenThe token.
The token is unknown or belongs to another tenant (indistinguishable).
Fields
The token.
Stale
The case moved past the revision the token was issued at.
Fields
§
token: TargetTokenThe token.
§
issued_revision: CaseRevisionRevision at issue time.
§
current_revision: CaseRevisionRevision now.
MentionUnresolved
A Mention target could not be matched to any candidate.
Fields
§
workflow: WorkflowKeyWorkflow named by the mention.
NoActiveInteraction
ActiveInteraction was used but no active blocking interaction exists.
PolicyMismatch
The act’s target policy forbids the proposed target kind.
Fields
§
operation: OperationKeyThe operation whose policy was violated.
Trait Implementations§
Source§impl Clone for TargetError
impl Clone for TargetError
Source§impl Debug for TargetError
impl Debug for TargetError
Source§impl<'de> Deserialize<'de> for TargetError
impl<'de> Deserialize<'de> for TargetError
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
Source§impl Display for TargetError
impl Display for TargetError
impl Eq for TargetError
Source§impl Error for TargetError
impl Error for TargetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TargetError> for OrchestratorError
impl From<TargetError> for OrchestratorError
Source§fn from(value: TargetError) -> Self
fn from(value: TargetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TargetError
impl PartialEq for TargetError
Source§impl Serialize for TargetError
impl Serialize for TargetError
impl StructuralPartialEq for TargetError
Auto Trait Implementations§
impl Freeze for TargetError
impl RefUnwindSafe for TargetError
impl Send for TargetError
impl Sync for TargetError
impl Unpin for TargetError
impl UnsafeUnpin for TargetError
impl UnwindSafe for TargetError
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>,
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.