Struct aws_sdk_cloudsearch::types::LiteralArrayOptions
source · #[non_exhaustive]pub struct LiteralArrayOptions {
pub default_value: Option<String>,
pub source_fields: Option<String>,
pub facet_enabled: Option<bool>,
pub search_enabled: Option<bool>,
pub return_enabled: Option<bool>,
}
Expand description
Options for a field that contains an array of literal strings. Present if IndexFieldType
specifies the field is of type literal-array
. 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.
facet_enabled: Option<bool>
Whether facet information can be returned for the field.
search_enabled: Option<bool>
Whether the contents of the field are searchable.
return_enabled: Option<bool>
Whether the contents of the field can be returned in the search results.
Implementations§
source§impl LiteralArrayOptions
impl LiteralArrayOptions
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 facet_enabled(&self) -> Option<bool>
pub fn facet_enabled(&self) -> Option<bool>
Whether facet information can be returned for the field.
sourcepub fn search_enabled(&self) -> Option<bool>
pub fn search_enabled(&self) -> Option<bool>
Whether the contents of the field are searchable.
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.
source§impl LiteralArrayOptions
impl LiteralArrayOptions
sourcepub fn builder() -> LiteralArrayOptionsBuilder
pub fn builder() -> LiteralArrayOptionsBuilder
Creates a new builder-style object to manufacture LiteralArrayOptions
.
Trait Implementations§
source§impl Clone for LiteralArrayOptions
impl Clone for LiteralArrayOptions
source§fn clone(&self) -> LiteralArrayOptions
fn clone(&self) -> LiteralArrayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LiteralArrayOptions
impl Debug for LiteralArrayOptions
source§impl PartialEq for LiteralArrayOptions
impl PartialEq for LiteralArrayOptions
source§fn eq(&self, other: &LiteralArrayOptions) -> bool
fn eq(&self, other: &LiteralArrayOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LiteralArrayOptions
Auto Trait Implementations§
impl Freeze for LiteralArrayOptions
impl RefUnwindSafe for LiteralArrayOptions
impl Send for LiteralArrayOptions
impl Sync for LiteralArrayOptions
impl Unpin for LiteralArrayOptions
impl UnwindSafe for LiteralArrayOptions
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