#[non_exhaustive]pub enum TargetResolution {
Exact {
case_ref: CaseRef,
},
Ambiguous {
candidates: Vec<TargetCandidate>,
},
Missing,
Unauthorized,
Stale {
case_ref: CaseRef,
current_revision: CaseRevision,
},
}Expand description
Outcome of resolving a proposed target (spec §12.2). Only Exact may reach
command compilation.
New outcomes are expected, so downstream matches need a wildcard arm.
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.
Exact
Exactly one authorized case.
Ambiguous
Several authorized cases; never pick one (I8).
Fields
§
candidates: Vec<TargetCandidate>The candidates for a selection interaction.
Missing
The token was issued this turn but the case no longer exists.
Unknown token or another tenant’s token.
Stale
The case moved past the revision the token was issued at.
Implementations§
Trait Implementations§
Source§impl Clone for TargetResolution
impl Clone for TargetResolution
Source§impl Debug for TargetResolution
impl Debug for TargetResolution
Source§impl<'de> Deserialize<'de> for TargetResolution
impl<'de> Deserialize<'de> for TargetResolution
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 TargetResolution
Source§impl PartialEq for TargetResolution
impl PartialEq for TargetResolution
Source§impl Serialize for TargetResolution
impl Serialize for TargetResolution
impl StructuralPartialEq for TargetResolution
Auto Trait Implementations§
impl Freeze for TargetResolution
impl RefUnwindSafe for TargetResolution
impl Send for TargetResolution
impl Sync for TargetResolution
impl Unpin for TargetResolution
impl UnsafeUnpin for TargetResolution
impl UnwindSafe for TargetResolution
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.