#[non_exhaustive]pub struct FulfillmentCodeHookSettings {
pub enabled: bool,
pub post_fulfillment_status_specification: Option<PostFulfillmentStatusSpecification>,
pub fulfillment_updates_specification: Option<FulfillmentUpdatesSpecification>,
pub active: Option<bool>,
}
Expand description
Determines if a Lambda function should be invoked for a specific intent.
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.enabled: bool
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
post_fulfillment_status_specification: Option<PostFulfillmentStatusSpecification>
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
fulfillment_updates_specification: Option<FulfillmentUpdatesSpecification>
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
active: Option<bool>
Determines whether the fulfillment code hook is used. When active
is false, the code hook doesn't run.
Implementations§
source§impl FulfillmentCodeHookSettings
impl FulfillmentCodeHookSettings
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
sourcepub fn post_fulfillment_status_specification(
&self
) -> Option<&PostFulfillmentStatusSpecification>
pub fn post_fulfillment_status_specification( &self ) -> Option<&PostFulfillmentStatusSpecification>
Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
sourcepub fn fulfillment_updates_specification(
&self
) -> Option<&FulfillmentUpdatesSpecification>
pub fn fulfillment_updates_specification( &self ) -> Option<&FulfillmentUpdatesSpecification>
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
source§impl FulfillmentCodeHookSettings
impl FulfillmentCodeHookSettings
sourcepub fn builder() -> FulfillmentCodeHookSettingsBuilder
pub fn builder() -> FulfillmentCodeHookSettingsBuilder
Creates a new builder-style object to manufacture FulfillmentCodeHookSettings
.
Trait Implementations§
source§impl Clone for FulfillmentCodeHookSettings
impl Clone for FulfillmentCodeHookSettings
source§fn clone(&self) -> FulfillmentCodeHookSettings
fn clone(&self) -> FulfillmentCodeHookSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FulfillmentCodeHookSettings
impl Debug for FulfillmentCodeHookSettings
source§impl PartialEq for FulfillmentCodeHookSettings
impl PartialEq for FulfillmentCodeHookSettings
source§fn eq(&self, other: &FulfillmentCodeHookSettings) -> bool
fn eq(&self, other: &FulfillmentCodeHookSettings) -> bool
self
and other
values to be equal, and is used
by ==
.