#[non_exhaustive]pub struct LiteralArrayOptionsBuilder { /* private fields */ }Expand description
A builder for LiteralArrayOptions.
Implementations§
source§impl LiteralArrayOptionsBuilder
impl LiteralArrayOptionsBuilder
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 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 build(self) -> LiteralArrayOptions
pub fn build(self) -> LiteralArrayOptions
Consumes the builder and constructs a LiteralArrayOptions.
Trait Implementations§
source§impl Clone for LiteralArrayOptionsBuilder
impl Clone for LiteralArrayOptionsBuilder
source§fn clone(&self) -> LiteralArrayOptionsBuilder
fn clone(&self) -> LiteralArrayOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LiteralArrayOptionsBuilder
impl Debug for LiteralArrayOptionsBuilder
source§impl Default for LiteralArrayOptionsBuilder
impl Default for LiteralArrayOptionsBuilder
source§fn default() -> LiteralArrayOptionsBuilder
fn default() -> LiteralArrayOptionsBuilder
source§impl PartialEq for LiteralArrayOptionsBuilder
impl PartialEq for LiteralArrayOptionsBuilder
source§fn eq(&self, other: &LiteralArrayOptionsBuilder) -> bool
fn eq(&self, other: &LiteralArrayOptionsBuilder) -> bool
self and other values to be equal, and is used
by ==.