#[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 ==
.impl StructuralPartialEq for FulfillmentCodeHookSettings
Auto Trait Implementations§
impl Freeze for FulfillmentCodeHookSettings
impl RefUnwindSafe for FulfillmentCodeHookSettings
impl Send for FulfillmentCodeHookSettings
impl Sync for FulfillmentCodeHookSettings
impl Unpin for FulfillmentCodeHookSettings
impl UnwindSafe for FulfillmentCodeHookSettings
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