#[non_exhaustive]pub struct PostFulfillmentStatusSpecification {
pub success_response: Option<ResponseSpecification>,
pub failure_response: Option<ResponseSpecification>,
pub timeout_response: Option<ResponseSpecification>,
pub success_next_step: Option<DialogState>,
pub success_conditional: Option<ConditionalSpecification>,
pub failure_next_step: Option<DialogState>,
pub failure_conditional: Option<ConditionalSpecification>,
pub timeout_next_step: Option<DialogState>,
pub timeout_conditional: Option<ConditionalSpecification>,
}Expand description
Provides a setting that determines whether the post-fulfillment response is sent to the user. For more information, see https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete
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.
failure_response: Option<ResponseSpecification>Specifies a list of message groups that Amazon Lex uses to respond the user input.
timeout_response: Option<ResponseSpecification>Specifies a list of message groups that Amazon Lex uses to respond the user input.
success_next_step: Option<DialogState>Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.
success_conditional: Option<ConditionalSpecification>A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.
failure_next_step: Option<DialogState>Specifies the next step the bot runs after the fulfillment 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 fulfillment code hook throws an exception or returns with the State field of the Intent object set to Failed.
timeout_next_step: Option<DialogState>Specifies the next step that the bot runs when the fulfillment code hook times out.
timeout_conditional: Option<ConditionalSpecification>A list of conditional branches to evaluate if the fulfillment code hook times out.
Implementations§
source§impl PostFulfillmentStatusSpecification
impl PostFulfillmentStatusSpecification
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 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 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 success_next_step(&self) -> Option<&DialogState>
pub fn success_next_step(&self) -> Option<&DialogState>
Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.
sourcepub fn success_conditional(&self) -> Option<&ConditionalSpecification>
pub fn success_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.
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 fulfillment 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 fulfillment code hook throws an exception or returns with the State field of the Intent object set to Failed.
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 fulfillment 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 fulfillment code hook times out.
source§impl PostFulfillmentStatusSpecification
impl PostFulfillmentStatusSpecification
sourcepub fn builder() -> PostFulfillmentStatusSpecificationBuilder
pub fn builder() -> PostFulfillmentStatusSpecificationBuilder
Creates a new builder-style object to manufacture PostFulfillmentStatusSpecification.
Trait Implementations§
source§impl Clone for PostFulfillmentStatusSpecification
impl Clone for PostFulfillmentStatusSpecification
source§fn clone(&self) -> PostFulfillmentStatusSpecification
fn clone(&self) -> PostFulfillmentStatusSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PostFulfillmentStatusSpecification
impl PartialEq for PostFulfillmentStatusSpecification
source§fn eq(&self, other: &PostFulfillmentStatusSpecification) -> bool
fn eq(&self, other: &PostFulfillmentStatusSpecification) -> bool
self and other values to be equal, and is used
by ==.