Struct aws_sdk_cloudsearch::types::builders::ExpressionBuilder
source · #[non_exhaustive]pub struct ExpressionBuilder { /* private fields */ }
Expand description
A builder for Expression
.
Implementations§
source§impl ExpressionBuilder
impl ExpressionBuilder
sourcepub fn expression_name(self, input: impl Into<String>) -> Self
pub fn expression_name(self, input: impl Into<String>) -> Self
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
This field is required.sourcepub fn set_expression_name(self, input: Option<String>) -> Self
pub fn set_expression_name(self, input: Option<String>) -> Self
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
sourcepub fn get_expression_name(&self) -> &Option<String>
pub fn get_expression_name(&self) -> &Option<String>
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
sourcepub fn expression_value(self, input: impl Into<String>) -> Self
pub fn expression_value(self, input: impl Into<String>) -> Self
The expression to evaluate for sorting while processing a search request. The Expression
syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn set_expression_value(self, input: Option<String>) -> Self
pub fn set_expression_value(self, input: Option<String>) -> Self
The expression to evaluate for sorting while processing a search request. The Expression
syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn get_expression_value(&self) -> &Option<String>
pub fn get_expression_value(&self) -> &Option<String>
The expression to evaluate for sorting while processing a search request. The Expression
syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn build(self) -> Result<Expression, BuildError>
pub fn build(self) -> Result<Expression, BuildError>
Consumes the builder and constructs a Expression
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ExpressionBuilder
impl Clone for ExpressionBuilder
source§fn clone(&self) -> ExpressionBuilder
fn clone(&self) -> ExpressionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExpressionBuilder
impl Debug for ExpressionBuilder
source§impl Default for ExpressionBuilder
impl Default for ExpressionBuilder
source§fn default() -> ExpressionBuilder
fn default() -> ExpressionBuilder
source§impl PartialEq for ExpressionBuilder
impl PartialEq for ExpressionBuilder
source§fn eq(&self, other: &ExpressionBuilder) -> bool
fn eq(&self, other: &ExpressionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExpressionBuilder
Auto Trait Implementations§
impl Freeze for ExpressionBuilder
impl RefUnwindSafe for ExpressionBuilder
impl Send for ExpressionBuilder
impl Sync for ExpressionBuilder
impl Unpin for ExpressionBuilder
impl UnwindSafe for ExpressionBuilder
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