#[non_exhaustive]pub struct PutSessionOutput {
pub content_type: Option<String>,
pub messages: Option<String>,
pub session_state: Option<String>,
pub request_attributes: Option<String>,
pub session_id: Option<String>,
pub audio_stream: ByteStream,
/* private fields */
}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.content_type: Option<String>The type of response. Same as the type specified in the responseContentType field in the request.
messages: Option<String>A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
session_state: Option<String>A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
request_attributes: Option<String>A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the requestAttribute parameter in the call to the PutSession operation.
session_id: Option<String>The identifier of the session that received the data.
audio_stream: ByteStreamIf the requested content type was audio, the audio version of the message to convey to the user.
Implementations§
source§impl PutSessionOutput
impl PutSessionOutput
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The type of response. Same as the type specified in the responseContentType field in the request.
sourcepub fn messages(&self) -> Option<&str>
pub fn messages(&self) -> Option<&str>
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
sourcepub fn session_state(&self) -> Option<&str>
pub fn session_state(&self) -> Option<&str>
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sourcepub fn request_attributes(&self) -> Option<&str>
pub fn request_attributes(&self) -> Option<&str>
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the requestAttribute parameter in the call to the PutSession operation.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The identifier of the session that received the data.
sourcepub fn audio_stream(&self) -> &ByteStream
pub fn audio_stream(&self) -> &ByteStream
If the requested content type was audio, the audio version of the message to convey to the user.
source§impl PutSessionOutput
impl PutSessionOutput
sourcepub fn builder() -> PutSessionOutputBuilder
pub fn builder() -> PutSessionOutputBuilder
Creates a new builder-style object to manufacture PutSessionOutput.
Trait Implementations§
source§impl Debug for PutSessionOutput
impl Debug for PutSessionOutput
source§impl RequestId for PutSessionOutput
impl RequestId for PutSessionOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.