#[non_exhaustive]pub struct TextArrayOptionsBuilder { /* private fields */ }Expand description
A builder for TextArrayOptions.
Implementations§
source§impl TextArrayOptionsBuilder
impl TextArrayOptionsBuilder
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_fields(self, input: impl Into<String>) -> Self
pub fn source_fields(self, input: impl Into<String>) -> Self
A list of source fields to map to the field.
sourcepub fn set_source_fields(self, input: Option<String>) -> Self
pub fn set_source_fields(self, input: Option<String>) -> Self
A list of source fields to map to the field.
sourcepub fn get_source_fields(&self) -> &Option<String>
pub fn get_source_fields(&self) -> &Option<String>
A list of source fields to map to the field.
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 highlight_enabled(self, input: bool) -> Self
pub fn highlight_enabled(self, input: bool) -> Self
Whether highlights can be returned for the field.
sourcepub fn set_highlight_enabled(self, input: Option<bool>) -> Self
pub fn set_highlight_enabled(self, input: Option<bool>) -> Self
Whether highlights can be returned for the field.
sourcepub fn get_highlight_enabled(&self) -> &Option<bool>
pub fn get_highlight_enabled(&self) -> &Option<bool>
Whether highlights can be returned for the field.
sourcepub fn analysis_scheme(self, input: impl Into<String>) -> Self
pub fn analysis_scheme(self, input: impl Into<String>) -> Self
The name of an analysis scheme for a text-array field.
sourcepub fn set_analysis_scheme(self, input: Option<String>) -> Self
pub fn set_analysis_scheme(self, input: Option<String>) -> Self
The name of an analysis scheme for a text-array field.
sourcepub fn get_analysis_scheme(&self) -> &Option<String>
pub fn get_analysis_scheme(&self) -> &Option<String>
The name of an analysis scheme for a text-array field.
sourcepub fn build(self) -> TextArrayOptions
pub fn build(self) -> TextArrayOptions
Consumes the builder and constructs a TextArrayOptions.
Trait Implementations§
source§impl Clone for TextArrayOptionsBuilder
impl Clone for TextArrayOptionsBuilder
source§fn clone(&self) -> TextArrayOptionsBuilder
fn clone(&self) -> TextArrayOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TextArrayOptionsBuilder
impl Debug for TextArrayOptionsBuilder
source§impl Default for TextArrayOptionsBuilder
impl Default for TextArrayOptionsBuilder
source§fn default() -> TextArrayOptionsBuilder
fn default() -> TextArrayOptionsBuilder
source§impl PartialEq for TextArrayOptionsBuilder
impl PartialEq for TextArrayOptionsBuilder
source§fn eq(&self, other: &TextArrayOptionsBuilder) -> bool
fn eq(&self, other: &TextArrayOptionsBuilder) -> bool
self and other values to be equal, and is used
by ==.