Struct aws_sdk_mailmanager::types::builders::RuleBuilder
source · #[non_exhaustive]pub struct RuleBuilder { /* private fields */ }
Expand description
A builder for Rule
.
Implementations§
source§impl RuleBuilder
impl RuleBuilder
sourcepub fn conditions(self, input: RuleCondition) -> Self
pub fn conditions(self, input: RuleCondition) -> Self
Appends an item to conditions
.
To override the contents of this collection use set_conditions
.
The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"
sourcepub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
pub fn set_conditions(self, input: Option<Vec<RuleCondition>>) -> Self
The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"
sourcepub fn get_conditions(&self) -> &Option<Vec<RuleCondition>>
pub fn get_conditions(&self) -> &Option<Vec<RuleCondition>>
The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"
sourcepub fn unless(self, input: RuleCondition) -> Self
pub fn unless(self, input: RuleCondition) -> Self
Appends an item to unless
.
To override the contents of this collection use set_unless
.
The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.
sourcepub fn set_unless(self, input: Option<Vec<RuleCondition>>) -> Self
pub fn set_unless(self, input: Option<Vec<RuleCondition>>) -> Self
The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.
sourcepub fn get_unless(&self) -> &Option<Vec<RuleCondition>>
pub fn get_unless(&self) -> &Option<Vec<RuleCondition>>
The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.
sourcepub fn actions(self, input: RuleAction) -> Self
pub fn actions(self, input: RuleAction) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
sourcepub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
sourcepub fn get_actions(&self) -> &Option<Vec<RuleAction>>
pub fn get_actions(&self) -> &Option<Vec<RuleAction>>
The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.
Trait Implementations§
source§impl Clone for RuleBuilder
impl Clone for RuleBuilder
source§fn clone(&self) -> RuleBuilder
fn clone(&self) -> RuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleBuilder
impl Debug for RuleBuilder
source§impl Default for RuleBuilder
impl Default for RuleBuilder
source§fn default() -> RuleBuilder
fn default() -> RuleBuilder
source§impl PartialEq for RuleBuilder
impl PartialEq for RuleBuilder
source§fn eq(&self, other: &RuleBuilder) -> bool
fn eq(&self, other: &RuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleBuilder
Auto Trait Implementations§
impl Freeze for RuleBuilder
impl RefUnwindSafe for RuleBuilder
impl Send for RuleBuilder
impl Sync for RuleBuilder
impl Unpin for RuleBuilder
impl UnwindSafe for RuleBuilder
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