pub enum DuplicateTarget<'a> {
Resolved(&'a Issue),
Unknown,
Ambiguous,
}Expand description
How the caller resolved the duplicate target’s identity.
The service validates identities; resolving a selector (--of some title)
against the store is the caller’s job, because that is the part that needs
the files. This enum carries the outcome of that resolution so the service
can still name the failure itself — a duplicate decision’s diagnostics are
the contract’s, not the caller’s, and “matched three issues” is one of them.
Variants§
Resolved(&'a Issue)
The selector resolved to exactly one issue.
Unknown
The selector resolved to no issue at all.
Ambiguous
The selector matched more than one issue, so no single identity exists.
Trait Implementations§
Source§impl<'a> Clone for DuplicateTarget<'a>
impl<'a> Clone for DuplicateTarget<'a>
impl<'a> Copy for DuplicateTarget<'a>
Source§impl<'a> Debug for DuplicateTarget<'a>
impl<'a> Debug for DuplicateTarget<'a>
impl<'a> Eq for DuplicateTarget<'a>
Source§impl<'a> PartialEq for DuplicateTarget<'a>
impl<'a> PartialEq for DuplicateTarget<'a>
impl<'a> StructuralPartialEq for DuplicateTarget<'a>
Auto Trait Implementations§
impl<'a> Freeze for DuplicateTarget<'a>
impl<'a> RefUnwindSafe for DuplicateTarget<'a>
impl<'a> Send for DuplicateTarget<'a>
impl<'a> Sync for DuplicateTarget<'a>
impl<'a> Unpin for DuplicateTarget<'a>
impl<'a> UnsafeUnpin for DuplicateTarget<'a>
impl<'a> UnwindSafe for DuplicateTarget<'a>
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,
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<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