Struct aws_sdk_lexruntimev2::types::ActiveContext
source · #[non_exhaustive]pub struct ActiveContext {
pub name: String,
pub time_to_live: Option<ActiveContextTimeToLive>,
pub context_attributes: HashMap<String, String>,
}Expand description
Contains information about the contexts that a user is using in a session. You can configure Amazon Lex V2 to set a context when an intent is fulfilled, or you can set a context using the , , or operations.
Use a context to indicate to Amazon Lex V2 intents that should be used as follow-up intents. For example, if the active context is order-fulfilled, only intents that have order-fulfilled configured as a trigger are considered for follow up.
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: StringThe name of the context.
time_to_live: Option<ActiveContextTimeToLive>Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
context_attributes: HashMap<String, String>A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
Implementations§
source§impl ActiveContext
impl ActiveContext
sourcepub fn time_to_live(&self) -> Option<&ActiveContextTimeToLive>
pub fn time_to_live(&self) -> Option<&ActiveContextTimeToLive>
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
sourcepub fn context_attributes(&self) -> &HashMap<String, String>
pub fn context_attributes(&self) -> &HashMap<String, String>
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
source§impl ActiveContext
impl ActiveContext
sourcepub fn builder() -> ActiveContextBuilder
pub fn builder() -> ActiveContextBuilder
Creates a new builder-style object to manufacture ActiveContext.
Trait Implementations§
source§impl Clone for ActiveContext
impl Clone for ActiveContext
source§fn clone(&self) -> ActiveContext
fn clone(&self) -> ActiveContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ActiveContext
impl Debug for ActiveContext
source§impl PartialEq for ActiveContext
impl PartialEq for ActiveContext
source§fn eq(&self, other: &ActiveContext) -> bool
fn eq(&self, other: &ActiveContext) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ActiveContext
Auto Trait Implementations§
impl Freeze for ActiveContext
impl RefUnwindSafe for ActiveContext
impl Send for ActiveContext
impl Sync for ActiveContext
impl Unpin for ActiveContext
impl UnwindSafe for ActiveContext
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