Struct aws_sdk_lexruntimev2::model::SessionState
source · #[non_exhaustive]pub struct SessionState { /* private fields */ }Expand description
The state of the user's session with Amazon Lex V2.
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() -> Builder
pub fn builder() -> Builder
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
This method tests for
self and other values to be equal, and is used
by ==.