Struct aws_sdk_lexruntime::operation::get_session::GetSessionOutput
source · #[non_exhaustive]pub struct GetSessionOutput {
pub recent_intent_summary_view: Option<Vec<IntentSummary>>,
pub session_attributes: Option<HashMap<String, String>>,
pub session_id: Option<String>,
pub dialog_action: Option<DialogAction>,
pub active_contexts: Option<Vec<ActiveContext>>,
/* 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.recent_intent_summary_view: Option<Vec<IntentSummary>>
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the recentIntentSummaryView
operation contains information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.
session_attributes: Option<HashMap<String, String>>
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
session_id: Option<String>
A unique identifier for the session.
dialog_action: Option<DialogAction>
Describes the current state of the bot.
active_contexts: Option<Vec<ActiveContext>>
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent
, PostText
, or PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
Implementations§
source§impl GetSessionOutput
impl GetSessionOutput
sourcepub fn recent_intent_summary_view(&self) -> &[IntentSummary]
pub fn recent_intent_summary_view(&self) -> &[IntentSummary]
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the recentIntentSummaryView
operation contains information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .recent_intent_summary_view.is_none()
.
sourcepub fn session_attributes(&self) -> Option<&HashMap<String, String>>
pub fn session_attributes(&self) -> Option<&HashMap<String, String>>
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
A unique identifier for the session.
sourcepub fn dialog_action(&self) -> Option<&DialogAction>
pub fn dialog_action(&self) -> Option<&DialogAction>
Describes the current state of the bot.
sourcepub fn active_contexts(&self) -> &[ActiveContext]
pub fn active_contexts(&self) -> &[ActiveContext]
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent
, PostText
, or PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .active_contexts.is_none()
.
source§impl GetSessionOutput
impl GetSessionOutput
sourcepub fn builder() -> GetSessionOutputBuilder
pub fn builder() -> GetSessionOutputBuilder
Creates a new builder-style object to manufacture GetSessionOutput
.
Trait Implementations§
source§impl Clone for GetSessionOutput
impl Clone for GetSessionOutput
source§fn clone(&self) -> GetSessionOutput
fn clone(&self) -> GetSessionOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSessionOutput
impl Debug for GetSessionOutput
source§impl PartialEq for GetSessionOutput
impl PartialEq for GetSessionOutput
source§fn eq(&self, other: &GetSessionOutput) -> bool
fn eq(&self, other: &GetSessionOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSessionOutput
impl RequestId for GetSessionOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.