#[non_exhaustive]pub struct SlotValueElicitationSetting { /* private fields */ }Expand description
Settings that you can use for eliciting a slot value.
Implementations
sourceimpl 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) -> Option<&SlotConstraint>
pub fn slot_constraint(&self) -> Option<&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) -> Option<&[SampleUtterance]>
pub fn sample_utterances(&self) -> Option<&[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.
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.
sourceimpl SlotValueElicitationSetting
impl SlotValueElicitationSetting
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SlotValueElicitationSetting.
Trait Implementations
sourceimpl Clone for SlotValueElicitationSetting
impl Clone for SlotValueElicitationSetting
sourcefn clone(&self) -> SlotValueElicitationSetting
fn clone(&self) -> SlotValueElicitationSetting
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more