Struct aws_sdk_cloudsearch::types::builders::LiteralOptionsBuilder
source · #[non_exhaustive]pub struct LiteralOptionsBuilder { /* private fields */ }
Expand description
A builder for LiteralOptions
.
Implementations§
source§impl LiteralOptionsBuilder
impl LiteralOptionsBuilder
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
A value to use for the field if the field isn’t specified for a document.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
A value to use for the field if the field isn’t specified for a document.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
A value to use for the field if the field isn’t specified for a document.
sourcepub fn source_field(self, input: impl Into<String>) -> Self
pub fn source_field(self, input: impl Into<String>) -> Self
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score
is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id
.
sourcepub fn set_source_field(self, input: Option<String>) -> Self
pub fn set_source_field(self, input: Option<String>) -> Self
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score
is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id
.
sourcepub fn get_source_field(&self) -> &Option<String>
pub fn get_source_field(&self) -> &Option<String>
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score
is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id
.
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) -> LiteralOptions
pub fn build(self) -> LiteralOptions
Consumes the builder and constructs a LiteralOptions
.
Trait Implementations§
source§impl Clone for LiteralOptionsBuilder
impl Clone for LiteralOptionsBuilder
source§fn clone(&self) -> LiteralOptionsBuilder
fn clone(&self) -> LiteralOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LiteralOptionsBuilder
impl Debug for LiteralOptionsBuilder
source§impl Default for LiteralOptionsBuilder
impl Default for LiteralOptionsBuilder
source§fn default() -> LiteralOptionsBuilder
fn default() -> LiteralOptionsBuilder
source§impl PartialEq for LiteralOptionsBuilder
impl PartialEq for LiteralOptionsBuilder
source§fn eq(&self, other: &LiteralOptionsBuilder) -> bool
fn eq(&self, other: &LiteralOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LiteralOptionsBuilder
Auto Trait Implementations§
impl Freeze for LiteralOptionsBuilder
impl RefUnwindSafe for LiteralOptionsBuilder
impl Send for LiteralOptionsBuilder
impl Sync for LiteralOptionsBuilder
impl Unpin for LiteralOptionsBuilder
impl UnwindSafe for LiteralOptionsBuilder
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