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
impl StructuralPartialEq for MultipleValuesSetting
Auto Trait Implementations§
impl Freeze for MultipleValuesSetting
impl RefUnwindSafe for MultipleValuesSetting
impl Send for MultipleValuesSetting
impl Sync for MultipleValuesSetting
impl Unpin for MultipleValuesSetting
impl UnwindSafe for MultipleValuesSetting
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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