#[non_exhaustive]pub struct SlotValueSelectionSetting { /* private fields */ }Expand description
Contains settings used by Amazon Lex to select a slot value.
Implementations
sourceimpl 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.
sourceimpl SlotValueSelectionSetting
impl SlotValueSelectionSetting
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SlotValueSelectionSetting.
Trait Implementations
sourceimpl Clone for SlotValueSelectionSetting
impl Clone for SlotValueSelectionSetting
sourcefn clone(&self) -> SlotValueSelectionSetting
fn clone(&self) -> SlotValueSelectionSetting
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more