#[non_exhaustive]pub struct SlotValueElicitationSetting {
pub default_value_specification: Option<SlotDefaultValueSpecification>,
pub slot_constraint: SlotConstraint,
pub prompt_specification: Option<PromptSpecification>,
pub sample_utterances: Option<Vec<SampleUtterance>>,
pub wait_and_continue_specification: Option<WaitAndContinueSpecification>,
pub slot_capture_setting: Option<SlotCaptureSetting>,
pub slot_resolution_setting: Option<SlotResolutionSetting>,
}Expand description
Specifies the elicitation setting details eliciting a slot.
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.default_value_specification: Option<SlotDefaultValueSpecification>A list of default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
slot_constraint: SlotConstraintSpecifies whether the slot is required or optional.
prompt_specification: Option<PromptSpecification>The prompt that Amazon Lex uses to elicit the slot value from the user.
sample_utterances: Option<Vec<SampleUtterance>>If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
wait_and_continue_specification: Option<WaitAndContinueSpecification>Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
slot_capture_setting: Option<SlotCaptureSetting>Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
slot_resolution_setting: Option<SlotResolutionSetting>An object containing information about whether assisted slot resolution is turned on for the slot or not.
Implementations§
source§impl SlotValueElicitationSetting
impl SlotValueElicitationSetting
sourcepub fn default_value_specification(
&self
) -> Option<&SlotDefaultValueSpecification>
pub fn default_value_specification( &self ) -> Option<&SlotDefaultValueSpecification>
A list of default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
sourcepub fn slot_constraint(&self) -> &SlotConstraint
pub fn slot_constraint(&self) -> &SlotConstraint
Specifies whether the slot is required or optional.
sourcepub fn prompt_specification(&self) -> Option<&PromptSpecification>
pub fn prompt_specification(&self) -> Option<&PromptSpecification>
The prompt that Amazon Lex uses to elicit the slot value from the user.
sourcepub fn sample_utterances(&self) -> &[SampleUtterance]
pub fn sample_utterances(&self) -> &[SampleUtterance]
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sample_utterances.is_none().
sourcepub fn wait_and_continue_specification(
&self
) -> Option<&WaitAndContinueSpecification>
pub fn wait_and_continue_specification( &self ) -> Option<&WaitAndContinueSpecification>
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
sourcepub fn slot_capture_setting(&self) -> Option<&SlotCaptureSetting>
pub fn slot_capture_setting(&self) -> Option<&SlotCaptureSetting>
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
sourcepub fn slot_resolution_setting(&self) -> Option<&SlotResolutionSetting>
pub fn slot_resolution_setting(&self) -> Option<&SlotResolutionSetting>
An object containing information about whether assisted slot resolution is turned on for the slot or not.
source§impl SlotValueElicitationSetting
impl SlotValueElicitationSetting
sourcepub fn builder() -> SlotValueElicitationSettingBuilder
pub fn builder() -> SlotValueElicitationSettingBuilder
Creates a new builder-style object to manufacture SlotValueElicitationSetting.
Trait Implementations§
source§impl Clone for SlotValueElicitationSetting
impl Clone for SlotValueElicitationSetting
source§fn clone(&self) -> SlotValueElicitationSetting
fn clone(&self) -> SlotValueElicitationSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlotValueElicitationSetting
impl Debug for SlotValueElicitationSetting
source§impl PartialEq for SlotValueElicitationSetting
impl PartialEq for SlotValueElicitationSetting
source§fn eq(&self, other: &SlotValueElicitationSetting) -> bool
fn eq(&self, other: &SlotValueElicitationSetting) -> bool
self and other values to be equal, and is used
by ==.