#[non_exhaustive]pub struct SearchableContactAttributesBuilder { /* private fields */ }
Expand description
A builder for SearchableContactAttributes
.
Implementations§
source§impl SearchableContactAttributesBuilder
impl SearchableContactAttributesBuilder
sourcepub fn criteria(self, input: SearchableContactAttributesCriteria) -> Self
pub fn criteria(self, input: SearchableContactAttributesCriteria) -> Self
Appends an item to criteria
.
To override the contents of this collection use set_criteria
.
The list of criteria based on user-defined contact attributes that are configured for contact search.
sourcepub fn set_criteria(
self,
input: Option<Vec<SearchableContactAttributesCriteria>>
) -> Self
pub fn set_criteria( self, input: Option<Vec<SearchableContactAttributesCriteria>> ) -> Self
The list of criteria based on user-defined contact attributes that are configured for contact search.
sourcepub fn get_criteria(&self) -> &Option<Vec<SearchableContactAttributesCriteria>>
pub fn get_criteria(&self) -> &Option<Vec<SearchableContactAttributesCriteria>>
The list of criteria based on user-defined contact attributes that are configured for contact search.
sourcepub fn match_type(self, input: SearchContactsMatchType) -> Self
pub fn match_type(self, input: SearchContactsMatchType) -> Self
The match type combining search criteria using multiple searchable contact attributes.
sourcepub fn set_match_type(self, input: Option<SearchContactsMatchType>) -> Self
pub fn set_match_type(self, input: Option<SearchContactsMatchType>) -> Self
The match type combining search criteria using multiple searchable contact attributes.
sourcepub fn get_match_type(&self) -> &Option<SearchContactsMatchType>
pub fn get_match_type(&self) -> &Option<SearchContactsMatchType>
The match type combining search criteria using multiple searchable contact attributes.
sourcepub fn build(self) -> Result<SearchableContactAttributes, BuildError>
pub fn build(self) -> Result<SearchableContactAttributes, BuildError>
Consumes the builder and constructs a SearchableContactAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SearchableContactAttributesBuilder
impl Clone for SearchableContactAttributesBuilder
source§fn clone(&self) -> SearchableContactAttributesBuilder
fn clone(&self) -> SearchableContactAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SearchableContactAttributesBuilder
impl Default for SearchableContactAttributesBuilder
source§fn default() -> SearchableContactAttributesBuilder
fn default() -> SearchableContactAttributesBuilder
source§impl PartialEq for SearchableContactAttributesBuilder
impl PartialEq for SearchableContactAttributesBuilder
source§fn eq(&self, other: &SearchableContactAttributesBuilder) -> bool
fn eq(&self, other: &SearchableContactAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchableContactAttributesBuilder
Auto Trait Implementations§
impl Freeze for SearchableContactAttributesBuilder
impl RefUnwindSafe for SearchableContactAttributesBuilder
impl Send for SearchableContactAttributesBuilder
impl Sync for SearchableContactAttributesBuilder
impl Unpin for SearchableContactAttributesBuilder
impl UnwindSafe for SearchableContactAttributesBuilder
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