#[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 ==
.impl StructuralPartialEq for TextArrayOptionsBuilder
Auto Trait Implementations§
impl Freeze for TextArrayOptionsBuilder
impl RefUnwindSafe for TextArrayOptionsBuilder
impl Send for TextArrayOptionsBuilder
impl Sync for TextArrayOptionsBuilder
impl Unpin for TextArrayOptionsBuilder
impl UnwindSafe for TextArrayOptionsBuilder
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