Struct aws_sdk_lexruntimev2::types::IntentResultEvent
source · #[non_exhaustive]pub struct IntentResultEvent {
pub input_mode: Option<InputMode>,
pub interpretations: Option<Vec<Interpretation>>,
pub session_state: Option<SessionState>,
pub request_attributes: Option<HashMap<String, String>>,
pub session_id: Option<String>,
pub event_id: Option<String>,
pub recognized_bot_member: Option<RecognizedBotMember>,
}Expand description
Contains the current state of the conversation between the client application and 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.input_mode: Option<InputMode>Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
interpretations: Option<Vec<Interpretation>>A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
session_state: Option<SessionState>The state of the user's session with Amazon Lex V2.
request_attributes: Option<HashMap<String, String>>The attributes sent in the request.
session_id: Option<String>The identifier of the session in use.
event_id: Option<String>A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
recognized_bot_member: Option<RecognizedBotMember>The bot member that is processing the intent.
Implementations§
source§impl IntentResultEvent
impl IntentResultEvent
sourcepub fn input_mode(&self) -> Option<&InputMode>
pub fn input_mode(&self) -> Option<&InputMode>
Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
sourcepub fn interpretations(&self) -> &[Interpretation]
pub fn interpretations(&self) -> &[Interpretation]
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .interpretations.is_none().
sourcepub fn session_state(&self) -> Option<&SessionState>
pub fn session_state(&self) -> Option<&SessionState>
The state of the user's session with Amazon Lex V2.
sourcepub fn request_attributes(&self) -> Option<&HashMap<String, String>>
pub fn request_attributes(&self) -> Option<&HashMap<String, String>>
The attributes sent in the request.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The identifier of the session in use.
sourcepub fn event_id(&self) -> Option<&str>
pub fn event_id(&self) -> Option<&str>
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
sourcepub fn recognized_bot_member(&self) -> Option<&RecognizedBotMember>
pub fn recognized_bot_member(&self) -> Option<&RecognizedBotMember>
The bot member that is processing the intent.
source§impl IntentResultEvent
impl IntentResultEvent
sourcepub fn builder() -> IntentResultEventBuilder
pub fn builder() -> IntentResultEventBuilder
Creates a new builder-style object to manufacture IntentResultEvent.
Trait Implementations§
source§impl Clone for IntentResultEvent
impl Clone for IntentResultEvent
source§fn clone(&self) -> IntentResultEvent
fn clone(&self) -> IntentResultEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IntentResultEvent
impl Debug for IntentResultEvent
source§impl PartialEq for IntentResultEvent
impl PartialEq for IntentResultEvent
source§fn eq(&self, other: &IntentResultEvent) -> bool
fn eq(&self, other: &IntentResultEvent) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IntentResultEvent
Auto Trait Implementations§
impl Freeze for IntentResultEvent
impl RefUnwindSafe for IntentResultEvent
impl Send for IntentResultEvent
impl Sync for IntentResultEvent
impl Unpin for IntentResultEvent
impl UnwindSafe for IntentResultEvent
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