pub struct SimilarityResult {
pub candidate_memory_id: String,
pub similarity_type: SimilarityType,
pub similarity_bp: u16,
pub matched_fields: Vec<String>,
pub reason: String,
}Expand description
Similarity result for one candidate-memory comparison.
Fields§
§candidate_memory_id: String§similarity_type: SimilarityType§similarity_bp: u16§matched_fields: Vec<String>§reason: StringTrait 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 (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 SimilarityResult
impl Debug for SimilarityResult
Source§impl<'de> Deserialize<'de> for SimilarityResult
impl<'de> Deserialize<'de> for SimilarityResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimilarityResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimilarityResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SimilarityResult
Source§impl PartialEq for SimilarityResult
impl PartialEq for SimilarityResult
Source§fn eq(&self, other: &SimilarityResult) -> bool
fn eq(&self, other: &SimilarityResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimilarityResult
impl Serialize for SimilarityResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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