#[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
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 SlotValueElicitationSetting
impl Debug for SlotValueElicitationSetting
sourceimpl PartialEq<SlotValueElicitationSetting> for SlotValueElicitationSetting
impl PartialEq<SlotValueElicitationSetting> for SlotValueElicitationSetting
sourcefn eq(&self, other: &SlotValueElicitationSetting) -> bool
fn eq(&self, other: &SlotValueElicitationSetting) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for SlotValueElicitationSetting
Auto Trait Implementations
impl RefUnwindSafe for SlotValueElicitationSetting
impl Send for SlotValueElicitationSetting
impl Sync for SlotValueElicitationSetting
impl Unpin for SlotValueElicitationSetting
impl UnwindSafe for SlotValueElicitationSetting
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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> 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