#[non_exhaustive]pub struct AutoMergingBuilder { /* private fields */ }
Expand description
A builder for AutoMerging
.
Implementations§
source§impl AutoMergingBuilder
impl AutoMergingBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
The flag that enables the auto-merging of duplicate profiles.
This field is required.sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
The flag that enables the auto-merging of duplicate profiles.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
The flag that enables the auto-merging of duplicate profiles.
sourcepub fn consolidation(self, input: Consolidation) -> Self
pub fn consolidation(self, input: Consolidation) -> Self
A list of matching attributes that represent matching criteria. If two profiles meet at least one of the requirements in the matching attributes list, they will be merged.
sourcepub fn set_consolidation(self, input: Option<Consolidation>) -> Self
pub fn set_consolidation(self, input: Option<Consolidation>) -> Self
A list of matching attributes that represent matching criteria. If two profiles meet at least one of the requirements in the matching attributes list, they will be merged.
sourcepub fn get_consolidation(&self) -> &Option<Consolidation>
pub fn get_consolidation(&self) -> &Option<Consolidation>
A list of matching attributes that represent matching criteria. If two profiles meet at least one of the requirements in the matching attributes list, they will be merged.
sourcepub fn conflict_resolution(self, input: ConflictResolution) -> Self
pub fn conflict_resolution(self, input: ConflictResolution) -> Self
How the auto-merging process should resolve conflicts between different profiles. For example, if Profile A and Profile B have the same FirstName
and LastName
(and that is the matching criteria), which EmailAddress
should be used?
sourcepub fn set_conflict_resolution(self, input: Option<ConflictResolution>) -> Self
pub fn set_conflict_resolution(self, input: Option<ConflictResolution>) -> Self
How the auto-merging process should resolve conflicts between different profiles. For example, if Profile A and Profile B have the same FirstName
and LastName
(and that is the matching criteria), which EmailAddress
should be used?
sourcepub fn get_conflict_resolution(&self) -> &Option<ConflictResolution>
pub fn get_conflict_resolution(&self) -> &Option<ConflictResolution>
How the auto-merging process should resolve conflicts between different profiles. For example, if Profile A and Profile B have the same FirstName
and LastName
(and that is the matching criteria), which EmailAddress
should be used?
sourcepub fn min_allowed_confidence_score_for_merging(self, input: f64) -> Self
pub fn min_allowed_confidence_score_for_merging(self, input: f64) -> Self
A number between 0 and 1 that represents the minimum confidence score required for profiles within a matching group to be merged during the auto-merge process. A higher score means higher similarity required to merge profiles.
sourcepub fn set_min_allowed_confidence_score_for_merging(
self,
input: Option<f64>
) -> Self
pub fn set_min_allowed_confidence_score_for_merging( self, input: Option<f64> ) -> Self
A number between 0 and 1 that represents the minimum confidence score required for profiles within a matching group to be merged during the auto-merge process. A higher score means higher similarity required to merge profiles.
sourcepub fn get_min_allowed_confidence_score_for_merging(&self) -> &Option<f64>
pub fn get_min_allowed_confidence_score_for_merging(&self) -> &Option<f64>
A number between 0 and 1 that represents the minimum confidence score required for profiles within a matching group to be merged during the auto-merge process. A higher score means higher similarity required to merge profiles.
sourcepub fn build(self) -> Result<AutoMerging, BuildError>
pub fn build(self) -> Result<AutoMerging, BuildError>
Consumes the builder and constructs a AutoMerging
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AutoMergingBuilder
impl Clone for AutoMergingBuilder
source§fn clone(&self) -> AutoMergingBuilder
fn clone(&self) -> AutoMergingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoMergingBuilder
impl Debug for AutoMergingBuilder
source§impl Default for AutoMergingBuilder
impl Default for AutoMergingBuilder
source§fn default() -> AutoMergingBuilder
fn default() -> AutoMergingBuilder
source§impl PartialEq for AutoMergingBuilder
impl PartialEq for AutoMergingBuilder
source§fn eq(&self, other: &AutoMergingBuilder) -> bool
fn eq(&self, other: &AutoMergingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoMergingBuilder
Auto Trait Implementations§
impl Freeze for AutoMergingBuilder
impl RefUnwindSafe for AutoMergingBuilder
impl Send for AutoMergingBuilder
impl Sync for AutoMergingBuilder
impl Unpin for AutoMergingBuilder
impl UnwindSafe for AutoMergingBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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