Struct aws_sdk_lexmodelsv2::types::MultipleValuesSetting
source · #[non_exhaustive]pub struct MultipleValuesSetting {
pub allow_multiple_values: bool,
}Expand description
Indicates whether a slot can return multiple values.
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.allow_multiple_values: boolIndicates whether a slot can return multiple values. When true, the slot may return more than one value in a response. When false, the slot returns only a single value.
Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.
If the allowMutlipleValues is not set, the default value is false.
Implementations§
source§impl MultipleValuesSetting
impl MultipleValuesSetting
sourcepub fn allow_multiple_values(&self) -> bool
pub fn allow_multiple_values(&self) -> bool
Indicates whether a slot can return multiple values. When true, the slot may return more than one value in a response. When false, the slot returns only a single value.
Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.
If the allowMutlipleValues is not set, the default value is false.
source§impl MultipleValuesSetting
impl MultipleValuesSetting
sourcepub fn builder() -> MultipleValuesSettingBuilder
pub fn builder() -> MultipleValuesSettingBuilder
Creates a new builder-style object to manufacture MultipleValuesSetting.
Trait Implementations§
source§impl Clone for MultipleValuesSetting
impl Clone for MultipleValuesSetting
source§fn clone(&self) -> MultipleValuesSetting
fn clone(&self) -> MultipleValuesSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MultipleValuesSetting
impl Debug for MultipleValuesSetting
source§impl PartialEq for MultipleValuesSetting
impl PartialEq for MultipleValuesSetting
source§fn eq(&self, other: &MultipleValuesSetting) -> bool
fn eq(&self, other: &MultipleValuesSetting) -> bool
self and other values to be equal, and is used
by ==.