#[non_exhaustive]pub struct SlotValueSelectionSetting {
pub resolution_strategy: SlotValueResolutionStrategy,
pub regex_filter: Option<SlotValueRegexFilter>,
pub advanced_recognition_setting: Option<AdvancedRecognitionSetting>,
}
Expand description
Contains settings used by Amazon Lex to select a slot value.
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.resolution_strategy: 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:
-
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value. -
TOP_RESOLUTION
- 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 ORIGINAL_VALUE
.
regex_filter: Option<SlotValueRegexFilter>
A regular expression used to validate the value of a slot.
advanced_recognition_setting: Option<AdvancedRecognitionSetting>
Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.
Implementations§
source§impl SlotValueSelectionSetting
impl SlotValueSelectionSetting
sourcepub fn resolution_strategy(&self) -> &SlotValueResolutionStrategy
pub fn resolution_strategy(&self) -> &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:
-
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value. -
TOP_RESOLUTION
- 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 ORIGINAL_VALUE
.
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. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.
source§impl SlotValueSelectionSetting
impl SlotValueSelectionSetting
sourcepub fn builder() -> SlotValueSelectionSettingBuilder
pub fn builder() -> SlotValueSelectionSettingBuilder
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 for SlotValueSelectionSetting
impl PartialEq 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 ==
.