Struct rusoto_lex_runtime::PutSessionResponse
source · [−]pub struct PutSessionResponse {
pub active_contexts: Option<String>,
pub audio_stream: Option<Bytes>,
pub content_type: Option<String>,
pub dialog_state: Option<String>,
pub encoded_message: Option<String>,
pub intent_name: Option<String>,
pub message_format: Option<String>,
pub session_attributes: Option<String>,
pub session_id: Option<String>,
pub slot_to_elicit: Option<String>,
pub slots: Option<String>,
}
Fields
active_contexts: Option<String>
A list of active contexts for the session.
audio_stream: Option<Bytes>
The audio version of the message to convey to the user.
content_type: Option<String>
Content type as specified in the Accept
HTTP header in the request.
dialog_state: Option<String>
-
ConfirmIntent
- Amazon Lex is expecting a "yes" or "no" response to confirm the intent before fulfilling an intent. -
ElicitIntent
- Amazon Lex wants to elicit the user's intent. -
ElicitSlot
- Amazon Lex is expecting the value of a slot for the current intent. -
Failed
- Conveys that the conversation with the user has failed. This can happen for various reasons, including the user does not provide an appropriate response to prompts from the service, or if the Lambda function fails to fulfill the intent. -
Fulfilled
- Conveys that the Lambda function has sucessfully fulfilled the intent. -
ReadyForFulfillment
- Conveys that the client has to fulfill the intent.
encoded_message: Option<String>
The next message that should be presented to the user.
The encodedMessage
field is base-64 encoded. You must decode the field before you can use the value.
intent_name: Option<String>
The name of the current intent.
message_format: Option<String>
The format of the response message. One of the following values:
-
PlainText
- The message contains plain UTF-8 text. -
CustomPayload
- The message is a custom format for the client. -
SSML
- The message contains text formatted for voice output. -
Composite
- The message contains an escaped JSON object containing one or more messages from the groups that messages were assigned to when the intent was created.
session_attributes: Option<String>
Map of key/value pairs representing session-specific context information.
session_id: Option<String>
A unique identifier for the session.
slot_to_elicit: Option<String>
If the dialogState
is ElicitSlot
, returns the name of the slot for which Amazon Lex is eliciting a value.
slots: Option<String>
Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.
Amazon Lex creates a resolution list containing likely values for a slot. The value that it returns is determined by the valueSelectionStrategy
selected when the slot type was created or updated. If valueSelectionStrategy
is set to ORIGINAL_VALUE
, the value provided by the user is returned, if the user value is similar to the slot values. If valueSelectionStrategy
is set to TOP_RESOLUTION
Amazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify a valueSelectionStrategy
the default is ORIGINAL_VALUE
.
Trait Implementations
sourceimpl Clone for PutSessionResponse
impl Clone for PutSessionResponse
sourcefn clone(&self) -> PutSessionResponse
fn clone(&self) -> PutSessionResponse
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 PutSessionResponse
impl Debug for PutSessionResponse
sourceimpl Default for PutSessionResponse
impl Default for PutSessionResponse
sourcefn default() -> PutSessionResponse
fn default() -> PutSessionResponse
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutSessionResponse> for PutSessionResponse
impl PartialEq<PutSessionResponse> for PutSessionResponse
sourcefn eq(&self, other: &PutSessionResponse) -> bool
fn eq(&self, other: &PutSessionResponse) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutSessionResponse) -> bool
fn ne(&self, other: &PutSessionResponse) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutSessionResponse
Auto Trait Implementations
impl RefUnwindSafe for PutSessionResponse
impl Send for PutSessionResponse
impl Sync for PutSessionResponse
impl Unpin for PutSessionResponse
impl UnwindSafe for PutSessionResponse
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