#[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
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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlotValueSelectionSetting
impl Debug for SlotValueSelectionSetting
sourceimpl PartialEq<SlotValueSelectionSetting> for SlotValueSelectionSetting
impl PartialEq<SlotValueSelectionSetting> for SlotValueSelectionSetting
sourcefn eq(&self, other: &SlotValueSelectionSetting) -> bool
fn eq(&self, other: &SlotValueSelectionSetting) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlotValueSelectionSetting) -> bool
fn ne(&self, other: &SlotValueSelectionSetting) -> bool
This method tests for !=.
impl StructuralPartialEq for SlotValueSelectionSetting
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more