Struct aws_sdk_cloudsearch::types::builders::DoubleOptionsBuilder
source · #[non_exhaustive]pub struct DoubleOptionsBuilder { /* private fields */ }
Expand description
A builder for DoubleOptions
.
Implementations§
source§impl DoubleOptionsBuilder
impl DoubleOptionsBuilder
sourcepub fn default_value(self, input: f64) -> Self
pub fn default_value(self, input: f64) -> Self
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
sourcepub fn set_default_value(self, input: Option<f64>) -> Self
pub fn set_default_value(self, input: Option<f64>) -> Self
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
sourcepub fn get_default_value(&self) -> &Option<f64>
pub fn get_default_value(&self) -> &Option<f64>
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
sourcepub fn source_field(self, input: impl Into<String>) -> Self
pub fn source_field(self, input: impl Into<String>) -> Self
The name of the source field to map to the field.
sourcepub fn set_source_field(self, input: Option<String>) -> Self
pub fn set_source_field(self, input: Option<String>) -> Self
The name of the source field to map to the field.
sourcepub fn get_source_field(&self) -> &Option<String>
pub fn get_source_field(&self) -> &Option<String>
The name of the source field to map to the field.
sourcepub fn facet_enabled(self, input: bool) -> Self
pub fn facet_enabled(self, input: bool) -> Self
Whether facet information can be returned for the field.
sourcepub fn set_facet_enabled(self, input: Option<bool>) -> Self
pub fn set_facet_enabled(self, input: Option<bool>) -> Self
Whether facet information can be returned for the field.
sourcepub fn get_facet_enabled(&self) -> &Option<bool>
pub fn get_facet_enabled(&self) -> &Option<bool>
Whether facet information can be returned for the field.
sourcepub fn search_enabled(self, input: bool) -> Self
pub fn search_enabled(self, input: bool) -> Self
Whether the contents of the field are searchable.
sourcepub fn set_search_enabled(self, input: Option<bool>) -> Self
pub fn set_search_enabled(self, input: Option<bool>) -> Self
Whether the contents of the field are searchable.
sourcepub fn get_search_enabled(&self) -> &Option<bool>
pub fn get_search_enabled(&self) -> &Option<bool>
Whether the contents of the field are searchable.
sourcepub fn return_enabled(self, input: bool) -> Self
pub fn return_enabled(self, input: bool) -> Self
Whether the contents of the field can be returned in the search results.
sourcepub fn set_return_enabled(self, input: Option<bool>) -> Self
pub fn set_return_enabled(self, input: Option<bool>) -> Self
Whether the contents of the field can be returned in the search results.
sourcepub fn get_return_enabled(&self) -> &Option<bool>
pub fn get_return_enabled(&self) -> &Option<bool>
Whether the contents of the field can be returned in the search results.
sourcepub fn sort_enabled(self, input: bool) -> Self
pub fn sort_enabled(self, input: bool) -> Self
Whether the field can be used to sort the search results.
sourcepub fn set_sort_enabled(self, input: Option<bool>) -> Self
pub fn set_sort_enabled(self, input: Option<bool>) -> Self
Whether the field can be used to sort the search results.
sourcepub fn get_sort_enabled(&self) -> &Option<bool>
pub fn get_sort_enabled(&self) -> &Option<bool>
Whether the field can be used to sort the search results.
sourcepub fn build(self) -> DoubleOptions
pub fn build(self) -> DoubleOptions
Consumes the builder and constructs a DoubleOptions
.
Trait Implementations§
source§impl Clone for DoubleOptionsBuilder
impl Clone for DoubleOptionsBuilder
source§fn clone(&self) -> DoubleOptionsBuilder
fn clone(&self) -> DoubleOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DoubleOptionsBuilder
impl Debug for DoubleOptionsBuilder
source§impl Default for DoubleOptionsBuilder
impl Default for DoubleOptionsBuilder
source§fn default() -> DoubleOptionsBuilder
fn default() -> DoubleOptionsBuilder
source§impl PartialEq for DoubleOptionsBuilder
impl PartialEq for DoubleOptionsBuilder
source§fn eq(&self, other: &DoubleOptionsBuilder) -> bool
fn eq(&self, other: &DoubleOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DoubleOptionsBuilder
Auto Trait Implementations§
impl Freeze for DoubleOptionsBuilder
impl RefUnwindSafe for DoubleOptionsBuilder
impl Send for DoubleOptionsBuilder
impl Sync for DoubleOptionsBuilder
impl Unpin for DoubleOptionsBuilder
impl UnwindSafe for DoubleOptionsBuilder
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