#[non_exhaustive]pub struct SlotValueSelectionSetting { /* private fields */ }Expand description
Contains settings used by Amazon Lex to select a slot value.
Implementations§
source§impl SlotValueSelectionSetting
impl SlotValueSelectionSetting
sourcepub fn resolution_strategy(&self) -> Option<&SlotValueResolutionStrategy>
pub fn resolution_strategy(&self) -> Option<&SlotValueResolutionStrategy>
Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
-
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
-
TopResolution - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the valueSelectionStrategy, the default is OriginalValue.
sourcepub fn regex_filter(&self) -> Option<&SlotValueRegexFilter>
pub fn regex_filter(&self) -> Option<&SlotValueRegexFilter>
A regular expression used to validate the value of a slot.
sourcepub fn advanced_recognition_setting(
&self
) -> Option<&AdvancedRecognitionSetting>
pub fn advanced_recognition_setting(
&self
) -> Option<&AdvancedRecognitionSetting>
Provides settings that enable advanced recognition settings for slot values.
source§impl SlotValueSelectionSetting
impl SlotValueSelectionSetting
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SlotValueSelectionSetting.
Trait Implementations§
source§impl Clone for SlotValueSelectionSetting
impl Clone for SlotValueSelectionSetting
source§fn clone(&self) -> SlotValueSelectionSetting
fn clone(&self) -> SlotValueSelectionSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlotValueSelectionSetting
impl Debug for SlotValueSelectionSetting
source§impl PartialEq<SlotValueSelectionSetting> for SlotValueSelectionSetting
impl PartialEq<SlotValueSelectionSetting> for SlotValueSelectionSetting
source§fn eq(&self, other: &SlotValueSelectionSetting) -> bool
fn eq(&self, other: &SlotValueSelectionSetting) -> bool
self and other values to be equal, and is used
by ==.