pub struct SimilarityResult {
pub provider_id: SimilarityProviderId,
pub similarity: u8,
pub confidence: u8,
pub target: SimilarityEntityRef,
}Expand description
A match produced by a similarity provider.
Fields§
§provider_id: SimilarityProviderIdThe provider which produced the match.
similarity: u8The similarity of the two entities.
confidence: u8The provider’s confidence in the match.
target: SimilarityEntityRefThe entity matched by this result.
This can be used to transfer metadata from the target to the source entity.
Trait Implementations§
Source§impl Clone for SimilarityResult
impl Clone for SimilarityResult
Source§fn clone(&self) -> SimilarityResult
fn clone(&self) -> SimilarityResult
Returns a duplicate of the value. Read more
1.0.0 · 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 SimilarityResult
impl Debug for SimilarityResult
Source§impl From<BNSimilarityResult> for SimilarityResult
impl From<BNSimilarityResult> for SimilarityResult
Source§fn from(value: BNSimilarityResult) -> Self
fn from(value: BNSimilarityResult) -> Self
Converts to this type from the input type.
Source§impl From<SimilarityResult> for BNSimilarityResult
impl From<SimilarityResult> for BNSimilarityResult
Source§fn from(value: SimilarityResult) -> Self
fn from(value: SimilarityResult) -> Self
Converts to this type from the input type.
Source§impl Hash for SimilarityResult
impl Hash for SimilarityResult
Source§impl PartialEq for SimilarityResult
impl PartialEq for SimilarityResult
impl Copy for SimilarityResult
impl Eq for SimilarityResult
impl StructuralPartialEq for SimilarityResult
Auto Trait Implementations§
impl Freeze for SimilarityResult
impl RefUnwindSafe for SimilarityResult
impl Send for SimilarityResult
impl Sync for SimilarityResult
impl Unpin for SimilarityResult
impl UnsafeUnpin for SimilarityResult
impl UnwindSafe for SimilarityResult
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<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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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