#[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: SlotValueResolutionStrategyDetermines 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
impl StructuralPartialEq for SlotValueSelectionSetting
Auto Trait Implementations§
impl Freeze for SlotValueSelectionSetting
impl RefUnwindSafe for SlotValueSelectionSetting
impl Send for SlotValueSelectionSetting
impl Sync for SlotValueSelectionSetting
impl Unpin for SlotValueSelectionSetting
impl UnwindSafe for SlotValueSelectionSetting
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