#[non_exhaustive]pub struct SlotValueElicitationSetting { /* private fields */ }Expand description
Specifies the elicitation setting details for constituent sub slots of a composite slot.
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) -> 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.
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<SlotValueElicitationSetting> for SlotValueElicitationSetting
impl PartialEq<SlotValueElicitationSetting> 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 ==.