pub enum MatchQuality {
ExactCanonical,
ExactAlias,
ScopedFallback,
Unresolved,
}Expand description
Match quality when resolving a mention to an entity.
Variants§
ExactCanonical
Exact canonical name or ID match within the requested scope.
ExactAlias
Matched through an alias within the requested scope.
ScopedFallback
Matched in a broader/different scope as a fallback.
The actual_scope field in ResolveResult shows where it was found.
Unresolved
No registered match — the mention is an unresolved candidate.
Trait Implementations§
Source§impl Clone for MatchQuality
impl Clone for MatchQuality
Source§fn clone(&self) -> MatchQuality
fn clone(&self) -> MatchQuality
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 MatchQuality
impl Debug for MatchQuality
Source§impl<'de> Deserialize<'de> for MatchQuality
impl<'de> Deserialize<'de> for MatchQuality
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 MatchQuality
Source§impl PartialEq for MatchQuality
impl PartialEq for MatchQuality
Source§fn eq(&self, other: &MatchQuality) -> bool
fn eq(&self, other: &MatchQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchQuality
impl Serialize for MatchQuality
impl StructuralPartialEq for MatchQuality
Auto Trait Implementations§
impl Freeze for MatchQuality
impl RefUnwindSafe for MatchQuality
impl Send for MatchQuality
impl Sync for MatchQuality
impl Unpin for MatchQuality
impl UnsafeUnpin for MatchQuality
impl UnwindSafe for MatchQuality
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§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.