Struct rusoto_lex_models::FulfillmentActivity
source · [−]Expand description
Describes how the intent is fulfilled after the user provides all of the information required for the intent. You can provide a Lambda function to process the intent, or you can return the intent information to the client application. We recommend that you use a Lambda function so that the relevant logic lives in the Cloud and limit the client-side code primarily to presentation. If you need to update the logic, you only update the Lambda function; you don't need to upgrade your client application.
Consider the following examples:
-
In a pizza ordering application, after the user provides all of the information for placing an order, you use a Lambda function to place an order with a pizzeria.
-
In a gaming application, when a user says "pick up a rock," this information must go back to the client application so that it can perform the operation and update the graphics. In this case, you want Amazon Lex to return the intent data to the client.
Fields
code_hook: Option<CodeHook>
A description of the Lambda function that is run to fulfill the intent.
type_: String
How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application.
Trait Implementations
sourceimpl Clone for FulfillmentActivity
impl Clone for FulfillmentActivity
sourcefn clone(&self) -> FulfillmentActivity
fn clone(&self) -> FulfillmentActivity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FulfillmentActivity
impl Debug for FulfillmentActivity
sourceimpl Default for FulfillmentActivity
impl Default for FulfillmentActivity
sourcefn default() -> FulfillmentActivity
fn default() -> FulfillmentActivity
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FulfillmentActivity
impl<'de> Deserialize<'de> for FulfillmentActivity
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FulfillmentActivity> for FulfillmentActivity
impl PartialEq<FulfillmentActivity> for FulfillmentActivity
sourcefn eq(&self, other: &FulfillmentActivity) -> bool
fn eq(&self, other: &FulfillmentActivity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FulfillmentActivity) -> bool
fn ne(&self, other: &FulfillmentActivity) -> bool
This method tests for !=
.
sourceimpl Serialize for FulfillmentActivity
impl Serialize for FulfillmentActivity
impl StructuralPartialEq for FulfillmentActivity
Auto Trait Implementations
impl RefUnwindSafe for FulfillmentActivity
impl Send for FulfillmentActivity
impl Sync for FulfillmentActivity
impl Unpin for FulfillmentActivity
impl UnwindSafe for FulfillmentActivity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more