Struct aws_sdk_connect::types::Expression
source · #[non_exhaustive]pub struct Expression {
pub attribute_condition: Option<AttributeCondition>,
pub and_expression: Option<Vec<Expression>>,
pub or_expression: Option<Vec<Expression>>,
}
Expand description
A tagged union to specify expression for a routing step.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attribute_condition: Option<AttributeCondition>
An object to specify the predefined attribute condition.
and_expression: Option<Vec<Expression>>
List of routing expressions which will be AND-ed together.
or_expression: Option<Vec<Expression>>
List of routing expressions which will be OR-ed together.
Implementations§
source§impl Expression
impl Expression
sourcepub fn attribute_condition(&self) -> Option<&AttributeCondition>
pub fn attribute_condition(&self) -> Option<&AttributeCondition>
An object to specify the predefined attribute condition.
sourcepub fn and_expression(&self) -> &[Expression]
pub fn and_expression(&self) -> &[Expression]
List of routing expressions which will be AND-ed together.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .and_expression.is_none()
.
sourcepub fn or_expression(&self) -> &[Expression]
pub fn or_expression(&self) -> &[Expression]
List of routing expressions which will be OR-ed together.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .or_expression.is_none()
.
source§impl Expression
impl Expression
sourcepub fn builder() -> ExpressionBuilder
pub fn builder() -> ExpressionBuilder
Creates a new builder-style object to manufacture Expression
.
Trait Implementations§
source§impl Clone for Expression
impl Clone for Expression
source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Debug for Expression
impl Debug for Expression
source§impl PartialEq for Expression
impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.