Struct aws_sdk_lexmodelsv2::types::PromptSpecification
source · #[non_exhaustive]pub struct PromptSpecification {
pub message_groups: Vec<MessageGroup>,
pub max_retries: i32,
pub allow_interrupt: Option<bool>,
pub message_selection_strategy: Option<MessageSelectionStrategy>,
pub prompt_attempts_specification: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>,
}Expand description
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.
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.message_groups: Vec<MessageGroup>A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
max_retries: i32The maximum number of times the bot tries to elicit a response from the user using this prompt.
allow_interrupt: Option<bool>Indicates whether the user can interrupt a speech prompt from the bot.
message_selection_strategy: Option<MessageSelectionStrategy>Indicates how a message is selected from a message group among retries.
prompt_attempts_specification: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>Specifies the advanced settings on each attempt of the prompt.
Implementations§
source§impl PromptSpecification
impl PromptSpecification
sourcepub fn message_groups(&self) -> &[MessageGroup]
pub fn message_groups(&self) -> &[MessageGroup]
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
sourcepub fn max_retries(&self) -> i32
pub fn max_retries(&self) -> i32
The maximum number of times the bot tries to elicit a response from the user using this prompt.
sourcepub fn allow_interrupt(&self) -> Option<bool>
pub fn allow_interrupt(&self) -> Option<bool>
Indicates whether the user can interrupt a speech prompt from the bot.
sourcepub fn message_selection_strategy(&self) -> Option<&MessageSelectionStrategy>
pub fn message_selection_strategy(&self) -> Option<&MessageSelectionStrategy>
Indicates how a message is selected from a message group among retries.
sourcepub fn prompt_attempts_specification(
&self,
) -> Option<&HashMap<PromptAttempt, PromptAttemptSpecification>>
pub fn prompt_attempts_specification( &self, ) -> Option<&HashMap<PromptAttempt, PromptAttemptSpecification>>
Specifies the advanced settings on each attempt of the prompt.
source§impl PromptSpecification
impl PromptSpecification
sourcepub fn builder() -> PromptSpecificationBuilder
pub fn builder() -> PromptSpecificationBuilder
Creates a new builder-style object to manufacture PromptSpecification.
Trait Implementations§
source§impl Clone for PromptSpecification
impl Clone for PromptSpecification
source§fn clone(&self) -> PromptSpecification
fn clone(&self) -> PromptSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PromptSpecification
impl Debug for PromptSpecification
source§impl PartialEq for PromptSpecification
impl PartialEq for PromptSpecification
source§fn eq(&self, other: &PromptSpecification) -> bool
fn eq(&self, other: &PromptSpecification) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptSpecification
Auto Trait Implementations§
impl Freeze for PromptSpecification
impl RefUnwindSafe for PromptSpecification
impl Send for PromptSpecification
impl Sync for PromptSpecification
impl Unpin for PromptSpecification
impl UnwindSafe for PromptSpecification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more