#[non_exhaustive]pub struct SearchableContactAttributesCriteriaBuilder { /* private fields */ }
Expand description
A builder for SearchableContactAttributesCriteria
.
Implementations§
source§impl SearchableContactAttributesCriteriaBuilder
impl SearchableContactAttributesCriteriaBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The key containing a searchable user-defined contact attribute.
This field is required.sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The key containing a searchable user-defined contact attribute.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The key containing a searchable user-defined contact attribute.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The list of values to search for within a user-defined contact attribute.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The list of values to search for within a user-defined contact attribute.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The list of values to search for within a user-defined contact attribute.
sourcepub fn build(self) -> Result<SearchableContactAttributesCriteria, BuildError>
pub fn build(self) -> Result<SearchableContactAttributesCriteria, BuildError>
Consumes the builder and constructs a SearchableContactAttributesCriteria
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SearchableContactAttributesCriteriaBuilder
impl Clone for SearchableContactAttributesCriteriaBuilder
source§fn clone(&self) -> SearchableContactAttributesCriteriaBuilder
fn clone(&self) -> SearchableContactAttributesCriteriaBuilder
Returns a copy 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 Default for SearchableContactAttributesCriteriaBuilder
impl Default for SearchableContactAttributesCriteriaBuilder
source§fn default() -> SearchableContactAttributesCriteriaBuilder
fn default() -> SearchableContactAttributesCriteriaBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SearchableContactAttributesCriteriaBuilder
impl PartialEq for SearchableContactAttributesCriteriaBuilder
source§fn eq(&self, other: &SearchableContactAttributesCriteriaBuilder) -> bool
fn eq(&self, other: &SearchableContactAttributesCriteriaBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchableContactAttributesCriteriaBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SearchableContactAttributesCriteriaBuilder
impl Send for SearchableContactAttributesCriteriaBuilder
impl Sync for SearchableContactAttributesCriteriaBuilder
impl Unpin for SearchableContactAttributesCriteriaBuilder
impl UnwindSafe for SearchableContactAttributesCriteriaBuilder
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
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>
Creates a shared type from an unshared type.