Struct aws_sdk_lexruntime::model::ActiveContext
source · [−]#[non_exhaustive]pub struct ActiveContext {
pub name: Option<String>,
pub time_to_live: Option<ActiveContextTimeToLive>,
pub parameters: Option<HashMap<String, String>>,
}
Expand description
A context is a variable that contains information about the current state of the conversation between a user and Amazon Lex. Context can be set automatically by Amazon Lex when an intent is fulfilled, or it can be set at runtime using the PutContent
, PutText
, or PutSession
operation.
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.name: Option<String>
The name of the context.
time_to_live: Option<ActiveContextTimeToLive>
The length of time or number of turns that a context remains active.
parameters: Option<HashMap<String, String>>
State variables for the current context. You can use these values as default values for slots in subsequent events.
Implementations
The length of time or number of turns that a context remains active.
Creates a new builder-style object to manufacture ActiveContext
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ActiveContext
impl Send for ActiveContext
impl Sync for ActiveContext
impl Unpin for ActiveContext
impl UnwindSafe for ActiveContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more