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