#[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 ==
.