#[non_exhaustive]pub struct SlotValueSelectionSetting {
pub resolution_strategy: Option<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: 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.
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.
Implementations
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.
A regular expression used to validate the value of a slot.
Provides settings that enable advanced recognition settings for slot values.
Creates a new builder-style object to manufacture SlotValueSelectionSetting
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SlotValueSelectionSetting
impl Send for SlotValueSelectionSetting
impl Sync for SlotValueSelectionSetting
impl Unpin for SlotValueSelectionSetting
impl UnwindSafe for SlotValueSelectionSetting
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more