Struct aws_sdk_lexruntimev2::types::SessionState
source · #[non_exhaustive]pub struct SessionState {
pub dialog_action: Option<DialogAction>,
pub intent: Option<Intent>,
pub active_contexts: Option<Vec<ActiveContext>>,
pub session_attributes: Option<HashMap<String, String>>,
pub originating_request_id: Option<String>,
pub runtime_hints: Option<RuntimeHints>,
}
Expand description
The state of the user's session with Amazon Lex V2.
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.dialog_action: Option<DialogAction>
The next step that Amazon Lex V2 should take in the conversation with a user.
intent: Option<Intent>
The active intent that Amazon Lex V2 is processing.
active_contexts: Option<Vec<ActiveContext>>
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
session_attributes: Option<HashMap<String, String>>
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
originating_request_id: Option<String>
A unique identifier for a specific request.
runtime_hints: Option<RuntimeHints>
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
Implementations§
source§impl SessionState
impl SessionState
sourcepub fn dialog_action(&self) -> Option<&DialogAction>
pub fn dialog_action(&self) -> Option<&DialogAction>
The next step that Amazon Lex V2 should take in the conversation with a user.
sourcepub fn active_contexts(&self) -> Option<&[ActiveContext]>
pub fn active_contexts(&self) -> Option<&[ActiveContext]>
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
sourcepub fn session_attributes(&self) -> Option<&HashMap<String, String>>
pub fn session_attributes(&self) -> Option<&HashMap<String, String>>
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
sourcepub fn originating_request_id(&self) -> Option<&str>
pub fn originating_request_id(&self) -> Option<&str>
A unique identifier for a specific request.
sourcepub fn runtime_hints(&self) -> Option<&RuntimeHints>
pub fn runtime_hints(&self) -> Option<&RuntimeHints>
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
source§impl SessionState
impl SessionState
sourcepub fn builder() -> SessionStateBuilder
pub fn builder() -> SessionStateBuilder
Creates a new builder-style object to manufacture SessionState
.
Trait Implementations§
source§impl Clone for SessionState
impl Clone for SessionState
source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionState
impl Debug for SessionState
source§impl PartialEq<SessionState> for SessionState
impl PartialEq<SessionState> for SessionState
source§fn eq(&self, other: &SessionState) -> bool
fn eq(&self, other: &SessionState) -> bool
self
and other
values to be equal, and is used
by ==
.