#[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 ==
.