Struct aws_sdk_cloudsearch::types::TextArrayOptions
source · #[non_exhaustive]pub struct TextArrayOptions {
pub default_value: Option<String>,
pub source_fields: Option<String>,
pub return_enabled: Option<bool>,
pub highlight_enabled: Option<bool>,
pub analysis_scheme: Option<String>,
}Expand description
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default_value: Option<String>A value to use for the field if the field isn’t specified for a document.
source_fields: Option<String>A list of source fields to map to the field.
return_enabled: Option<bool>Whether the contents of the field can be returned in the search results.
highlight_enabled: Option<bool>Whether highlights can be returned for the field.
analysis_scheme: Option<String>The name of an analysis scheme for a text-array field.
Implementations§
source§impl TextArrayOptions
impl TextArrayOptions
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
A value to use for the field if the field isn’t specified for a document.
sourcepub fn source_fields(&self) -> Option<&str>
pub fn source_fields(&self) -> Option<&str>
A list of source fields to map to the field.
sourcepub fn return_enabled(&self) -> Option<bool>
pub fn return_enabled(&self) -> Option<bool>
Whether the contents of the field can be returned in the search results.
sourcepub fn highlight_enabled(&self) -> Option<bool>
pub fn highlight_enabled(&self) -> Option<bool>
Whether highlights can be returned for the field.
sourcepub fn analysis_scheme(&self) -> Option<&str>
pub fn analysis_scheme(&self) -> Option<&str>
The name of an analysis scheme for a text-array field.
source§impl TextArrayOptions
impl TextArrayOptions
sourcepub fn builder() -> TextArrayOptionsBuilder
pub fn builder() -> TextArrayOptionsBuilder
Creates a new builder-style object to manufacture TextArrayOptions.
Trait Implementations§
source§impl Clone for TextArrayOptions
impl Clone for TextArrayOptions
source§fn clone(&self) -> TextArrayOptions
fn clone(&self) -> TextArrayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TextArrayOptions
impl Debug for TextArrayOptions
source§impl PartialEq for TextArrayOptions
impl PartialEq for TextArrayOptions
source§fn eq(&self, other: &TextArrayOptions) -> bool
fn eq(&self, other: &TextArrayOptions) -> bool
self and other values to be equal, and is used
by ==.