#[non_exhaustive]pub struct PostDialogCodeHookInvocationSpecification {
pub success_response: Option<ResponseSpecification>,
pub success_next_step: Option<DialogState>,
pub success_conditional: Option<ConditionalSpecification>,
pub failure_response: Option<ResponseSpecification>,
pub failure_next_step: Option<DialogState>,
pub failure_conditional: Option<ConditionalSpecification>,
pub timeout_response: Option<ResponseSpecification>,
pub timeout_next_step: Option<DialogState>,
pub timeout_conditional: Option<ConditionalSpecification>,
}
Expand description
Specifies next steps to run after the dialog code hook finishes.
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.success_response: Option<ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
success_next_step: Option<DialogState>
Specifics the next step the bot runs after the dialog code hook finishes successfully.
success_conditional: Option<ConditionalSpecification>
A list of conditional branches to evaluate after the dialog code hook finishes successfully.
failure_response: Option<ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
failure_next_step: Option<DialogState>
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State
field of the Intent
object set to Failed
.
failure_conditional: Option<ConditionalSpecification>
A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State
field of the Intent
object set to Failed
.
timeout_response: Option<ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
timeout_next_step: Option<DialogState>
Specifies the next step that the bot runs when the code hook times out.
timeout_conditional: Option<ConditionalSpecification>
A list of conditional branches to evaluate if the code hook times out.
Implementations§
source§impl PostDialogCodeHookInvocationSpecification
impl PostDialogCodeHookInvocationSpecification
sourcepub fn success_response(&self) -> Option<&ResponseSpecification>
pub fn success_response(&self) -> Option<&ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn success_next_step(&self) -> Option<&DialogState>
pub fn success_next_step(&self) -> Option<&DialogState>
Specifics the next step the bot runs after the dialog code hook finishes successfully.
sourcepub fn success_conditional(&self) -> Option<&ConditionalSpecification>
pub fn success_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate after the dialog code hook finishes successfully.
sourcepub fn failure_response(&self) -> Option<&ResponseSpecification>
pub fn failure_response(&self) -> Option<&ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn failure_next_step(&self) -> Option<&DialogState>
pub fn failure_next_step(&self) -> Option<&DialogState>
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State
field of the Intent
object set to Failed
.
sourcepub fn failure_conditional(&self) -> Option<&ConditionalSpecification>
pub fn failure_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State
field of the Intent
object set to Failed
.
sourcepub fn timeout_response(&self) -> Option<&ResponseSpecification>
pub fn timeout_response(&self) -> Option<&ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn timeout_next_step(&self) -> Option<&DialogState>
pub fn timeout_next_step(&self) -> Option<&DialogState>
Specifies the next step that the bot runs when the code hook times out.
sourcepub fn timeout_conditional(&self) -> Option<&ConditionalSpecification>
pub fn timeout_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate if the code hook times out.
source§impl PostDialogCodeHookInvocationSpecification
impl PostDialogCodeHookInvocationSpecification
sourcepub fn builder() -> PostDialogCodeHookInvocationSpecificationBuilder
pub fn builder() -> PostDialogCodeHookInvocationSpecificationBuilder
Creates a new builder-style object to manufacture PostDialogCodeHookInvocationSpecification
.
Trait Implementations§
source§impl Clone for PostDialogCodeHookInvocationSpecification
impl Clone for PostDialogCodeHookInvocationSpecification
source§fn clone(&self) -> PostDialogCodeHookInvocationSpecification
fn clone(&self) -> PostDialogCodeHookInvocationSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PostDialogCodeHookInvocationSpecification
impl PartialEq for PostDialogCodeHookInvocationSpecification
source§fn eq(&self, other: &PostDialogCodeHookInvocationSpecification) -> bool
fn eq(&self, other: &PostDialogCodeHookInvocationSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PostDialogCodeHookInvocationSpecification
Auto Trait Implementations§
impl Freeze for PostDialogCodeHookInvocationSpecification
impl RefUnwindSafe for PostDialogCodeHookInvocationSpecification
impl Send for PostDialogCodeHookInvocationSpecification
impl Sync for PostDialogCodeHookInvocationSpecification
impl Unpin for PostDialogCodeHookInvocationSpecification
impl UnwindSafe for PostDialogCodeHookInvocationSpecification
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> 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