#[non_exhaustive]pub struct ConflictResolutionBuilder { /* private fields */ }
Expand description
A builder for ConflictResolution
.
Implementations§
source§impl ConflictResolutionBuilder
impl ConflictResolutionBuilder
sourcepub fn conflict_resolving_model(self, input: ConflictResolvingModel) -> Self
pub fn conflict_resolving_model(self, input: ConflictResolvingModel) -> Self
How the auto-merging process should resolve conflicts between different profiles.
-
RECENCY
: Uses the data that was most recently updated. -
SOURCE
: Uses the data from a specific source. For example, if a company has been aquired or two departments have merged, data from the specified source is used. If two duplicate profiles are from the same source, thenRECENCY
is used again.
sourcepub fn set_conflict_resolving_model(
self,
input: Option<ConflictResolvingModel>
) -> Self
pub fn set_conflict_resolving_model( self, input: Option<ConflictResolvingModel> ) -> Self
How the auto-merging process should resolve conflicts between different profiles.
-
RECENCY
: Uses the data that was most recently updated. -
SOURCE
: Uses the data from a specific source. For example, if a company has been aquired or two departments have merged, data from the specified source is used. If two duplicate profiles are from the same source, thenRECENCY
is used again.
sourcepub fn get_conflict_resolving_model(&self) -> &Option<ConflictResolvingModel>
pub fn get_conflict_resolving_model(&self) -> &Option<ConflictResolvingModel>
How the auto-merging process should resolve conflicts between different profiles.
-
RECENCY
: Uses the data that was most recently updated. -
SOURCE
: Uses the data from a specific source. For example, if a company has been aquired or two departments have merged, data from the specified source is used. If two duplicate profiles are from the same source, thenRECENCY
is used again.
sourcepub fn source_name(self, input: impl Into<String>) -> Self
pub fn source_name(self, input: impl Into<String>) -> Self
The ObjectType
name that is used to resolve profile merging conflicts when choosing SOURCE
as the ConflictResolvingModel
.
sourcepub fn set_source_name(self, input: Option<String>) -> Self
pub fn set_source_name(self, input: Option<String>) -> Self
The ObjectType
name that is used to resolve profile merging conflicts when choosing SOURCE
as the ConflictResolvingModel
.
sourcepub fn get_source_name(&self) -> &Option<String>
pub fn get_source_name(&self) -> &Option<String>
The ObjectType
name that is used to resolve profile merging conflicts when choosing SOURCE
as the ConflictResolvingModel
.
sourcepub fn build(self) -> Result<ConflictResolution, BuildError>
pub fn build(self) -> Result<ConflictResolution, BuildError>
Consumes the builder and constructs a ConflictResolution
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ConflictResolutionBuilder
impl Clone for ConflictResolutionBuilder
source§fn clone(&self) -> ConflictResolutionBuilder
fn clone(&self) -> ConflictResolutionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConflictResolutionBuilder
impl Debug for ConflictResolutionBuilder
source§impl Default for ConflictResolutionBuilder
impl Default for ConflictResolutionBuilder
source§fn default() -> ConflictResolutionBuilder
fn default() -> ConflictResolutionBuilder
source§impl PartialEq for ConflictResolutionBuilder
impl PartialEq for ConflictResolutionBuilder
source§fn eq(&self, other: &ConflictResolutionBuilder) -> bool
fn eq(&self, other: &ConflictResolutionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConflictResolutionBuilder
Auto Trait Implementations§
impl Freeze for ConflictResolutionBuilder
impl RefUnwindSafe for ConflictResolutionBuilder
impl Send for ConflictResolutionBuilder
impl Sync for ConflictResolutionBuilder
impl Unpin for ConflictResolutionBuilder
impl UnwindSafe for ConflictResolutionBuilder
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