Struct aws_sdk_lexmodelsv2::types::DialogAction
source · #[non_exhaustive]pub struct DialogAction {
pub type: DialogActionType,
pub slot_to_elicit: Option<String>,
pub suppress_next_message: Option<bool>,
}
Expand description
Defines the action that the bot executes at runtime when the conversation reaches this step.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: DialogActionType
The action that the bot should execute.
slot_to_elicit: Option<String>
If the dialog action is ElicitSlot
, defines the slot to elicit from the user.
suppress_next_message: Option<bool>
When true the next message for the intent is not used.
Implementations§
source§impl DialogAction
impl DialogAction
sourcepub fn type(&self) -> &DialogActionType
pub fn type(&self) -> &DialogActionType
The action that the bot should execute.
sourcepub fn slot_to_elicit(&self) -> Option<&str>
pub fn slot_to_elicit(&self) -> Option<&str>
If the dialog action is ElicitSlot
, defines the slot to elicit from the user.
sourcepub fn suppress_next_message(&self) -> Option<bool>
pub fn suppress_next_message(&self) -> Option<bool>
When true the next message for the intent is not used.
source§impl DialogAction
impl DialogAction
sourcepub fn builder() -> DialogActionBuilder
pub fn builder() -> DialogActionBuilder
Creates a new builder-style object to manufacture DialogAction
.
Trait Implementations§
source§impl Clone for DialogAction
impl Clone for DialogAction
source§fn clone(&self) -> DialogAction
fn clone(&self) -> DialogAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DialogAction
impl Debug for DialogAction
source§impl PartialEq for DialogAction
impl PartialEq for DialogAction
source§fn eq(&self, other: &DialogAction) -> bool
fn eq(&self, other: &DialogAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DialogAction
Auto Trait Implementations§
impl RefUnwindSafe for DialogAction
impl Send for DialogAction
impl Sync for DialogAction
impl Unpin for DialogAction
impl UnwindSafe for DialogAction
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.