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) -> &[ActiveContext]
pub fn active_contexts(&self) -> &[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.
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().
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 for SessionState
impl PartialEq 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 ==.impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnwindSafe for SessionState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more