Struct aws_sdk_cloudsearch::types::DoubleOptions
source · #[non_exhaustive]pub struct DoubleOptions {
pub default_value: Option<f64>,
pub source_field: Option<String>,
pub facet_enabled: Option<bool>,
pub search_enabled: Option<bool>,
pub return_enabled: Option<bool>,
pub sort_enabled: Option<bool>,
}
Expand description
Options for a double-precision 64-bit floating point field. Present if IndexFieldType
specifies the field is of type double
. 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<f64>
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
source_field: Option<String>
The name of the source field 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.
sort_enabled: Option<bool>
Whether the field can be used to sort the search results.
Implementations§
source§impl DoubleOptions
impl DoubleOptions
sourcepub fn default_value(&self) -> Option<f64>
pub fn default_value(&self) -> Option<f64>
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
sourcepub fn source_field(&self) -> Option<&str>
pub fn source_field(&self) -> Option<&str>
The name of the source field 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.
sourcepub fn sort_enabled(&self) -> Option<bool>
pub fn sort_enabled(&self) -> Option<bool>
Whether the field can be used to sort the search results.
source§impl DoubleOptions
impl DoubleOptions
sourcepub fn builder() -> DoubleOptionsBuilder
pub fn builder() -> DoubleOptionsBuilder
Creates a new builder-style object to manufacture DoubleOptions
.
Trait Implementations§
source§impl Clone for DoubleOptions
impl Clone for DoubleOptions
source§fn clone(&self) -> DoubleOptions
fn clone(&self) -> DoubleOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DoubleOptions
impl Debug for DoubleOptions
source§impl PartialEq for DoubleOptions
impl PartialEq for DoubleOptions
source§fn eq(&self, other: &DoubleOptions) -> bool
fn eq(&self, other: &DoubleOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DoubleOptions
Auto Trait Implementations§
impl Freeze for DoubleOptions
impl RefUnwindSafe for DoubleOptions
impl Send for DoubleOptions
impl Sync for DoubleOptions
impl Unpin for DoubleOptions
impl UnwindSafe for DoubleOptions
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