#[non_exhaustive]pub struct ContactListDestinationBuilder { /* private fields */ }
Expand description
A builder for ContactListDestination
.
Implementations§
source§impl ContactListDestinationBuilder
impl ContactListDestinationBuilder
sourcepub fn contact_list_name(self, input: impl Into<String>) -> Self
pub fn contact_list_name(self, input: impl Into<String>) -> Self
The name of the contact list.
This field is required.sourcepub fn set_contact_list_name(self, input: Option<String>) -> Self
pub fn set_contact_list_name(self, input: Option<String>) -> Self
The name of the contact list.
sourcepub fn get_contact_list_name(&self) -> &Option<String>
pub fn get_contact_list_name(&self) -> &Option<String>
The name of the contact list.
sourcepub fn contact_list_import_action(self, input: ContactListImportAction) -> Self
pub fn contact_list_import_action(self, input: ContactListImportAction) -> Self
>The type of action to perform on the addresses. The following are the possible values:
-
PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.
-
DELETE: remove the addresses from the contact list.
sourcepub fn set_contact_list_import_action(
self,
input: Option<ContactListImportAction>,
) -> Self
pub fn set_contact_list_import_action( self, input: Option<ContactListImportAction>, ) -> Self
>The type of action to perform on the addresses. The following are the possible values:
-
PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.
-
DELETE: remove the addresses from the contact list.
sourcepub fn get_contact_list_import_action(&self) -> &Option<ContactListImportAction>
pub fn get_contact_list_import_action(&self) -> &Option<ContactListImportAction>
>The type of action to perform on the addresses. The following are the possible values:
-
PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.
-
DELETE: remove the addresses from the contact list.
sourcepub fn build(self) -> Result<ContactListDestination, BuildError>
pub fn build(self) -> Result<ContactListDestination, BuildError>
Consumes the builder and constructs a ContactListDestination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContactListDestinationBuilder
impl Clone for ContactListDestinationBuilder
source§fn clone(&self) -> ContactListDestinationBuilder
fn clone(&self) -> ContactListDestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ContactListDestinationBuilder
impl Default for ContactListDestinationBuilder
source§fn default() -> ContactListDestinationBuilder
fn default() -> ContactListDestinationBuilder
source§impl PartialEq for ContactListDestinationBuilder
impl PartialEq for ContactListDestinationBuilder
source§fn eq(&self, other: &ContactListDestinationBuilder) -> bool
fn eq(&self, other: &ContactListDestinationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContactListDestinationBuilder
Auto Trait Implementations§
impl Freeze for ContactListDestinationBuilder
impl RefUnwindSafe for ContactListDestinationBuilder
impl Send for ContactListDestinationBuilder
impl Sync for ContactListDestinationBuilder
impl Unpin for ContactListDestinationBuilder
impl UnwindSafe for ContactListDestinationBuilder
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