pub struct DataMatcher { /* private fields */ }Expand description
Data matcher for cross-source entity resolution
Implementations§
Source§impl DataMatcher
impl DataMatcher
Sourcepub fn with_cpf_threshold(self, threshold: f64) -> Self
pub fn with_cpf_threshold(self, threshold: f64) -> Self
Set CPF confidence threshold
Sourcepub fn with_name_threshold(self, threshold: f64) -> Self
pub fn with_name_threshold(self, threshold: f64) -> Self
Set name confidence threshold
Sourcepub fn match_across_sources(
&self,
sources: &[DataSource],
query_name: &str,
query_cpf: Option<&str>,
) -> Vec<MatchResult>
pub fn match_across_sources( &self, sources: &[DataSource], query_name: &str, query_cpf: Option<&str>, ) -> Vec<MatchResult>
Match across multiple data sources
Returns consolidated results grouping records that refer to the same entity
Sourcepub fn find_best_match(
&self,
sources: &[DataSource],
query_name: &str,
query_cpf: Option<&str>,
) -> Option<MatchResult>
pub fn find_best_match( &self, sources: &[DataSource], query_name: &str, query_cpf: Option<&str>, ) -> Option<MatchResult>
Find a single best match
Sourcepub fn entity_exists(
&self,
sources: &[DataSource],
query_name: &str,
query_cpf: Option<&str>,
) -> bool
pub fn entity_exists( &self, sources: &[DataSource], query_name: &str, query_cpf: Option<&str>, ) -> bool
Check if an entity exists in sources
Trait Implementations§
Source§impl Clone for DataMatcher
impl Clone for DataMatcher
Source§fn clone(&self) -> DataMatcher
fn clone(&self) -> DataMatcher
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 DataMatcher
impl Debug for DataMatcher
Auto Trait Implementations§
impl Freeze for DataMatcher
impl RefUnwindSafe for DataMatcher
impl Send for DataMatcher
impl Sync for DataMatcher
impl Unpin for DataMatcher
impl UnsafeUnpin for DataMatcher
impl UnwindSafe for DataMatcher
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