#[non_exhaustive]pub struct SlotValueElicitationSetting {
pub default_value_specification: Option<SlotDefaultValueSpecification>,
pub slot_constraint: Option<SlotConstraint>,
pub prompt_specification: Option<PromptSpecification>,
pub sample_utterances: Option<Vec<SampleUtterance>>,
pub wait_and_continue_specification: Option<WaitAndContinueSpecification>,
}Expand description
Settings that you can use for eliciting 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.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: Option<SlotConstraint>Specifies 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.
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.
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
sourcefn ne(&self, other: &SlotValueElicitationSetting) -> bool
fn ne(&self, other: &SlotValueElicitationSetting) -> bool
This method tests for !=.
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> 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.
sourcefn clone_into(&self, target: &mut T)
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