Struct aws_sdk_lexruntime::types::PredictedIntent
source · #[non_exhaustive]pub struct PredictedIntent {
pub intent_name: Option<String>,
pub nlu_intent_confidence: Option<IntentConfidence>,
pub slots: Option<HashMap<String, String>>,
}
Expand description
An intent that Amazon Lex suggests satisfies the user's intent. Includes the name of the intent, the confidence that Amazon Lex has that the user's intent is satisfied, and the slots defined for the intent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.intent_name: Option<String>
The name of the intent that Amazon Lex suggests satisfies the user's intent.
nlu_intent_confidence: Option<IntentConfidence>
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
slots: Option<HashMap<String, String>>
The slot and slot values associated with the predicted intent.
Implementations§
source§impl PredictedIntent
impl PredictedIntent
sourcepub fn intent_name(&self) -> Option<&str>
pub fn intent_name(&self) -> Option<&str>
The name of the intent that Amazon Lex suggests satisfies the user's intent.
sourcepub fn nlu_intent_confidence(&self) -> Option<&IntentConfidence>
pub fn nlu_intent_confidence(&self) -> Option<&IntentConfidence>
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
source§impl PredictedIntent
impl PredictedIntent
sourcepub fn builder() -> PredictedIntentBuilder
pub fn builder() -> PredictedIntentBuilder
Creates a new builder-style object to manufacture PredictedIntent
.
Trait Implementations§
source§impl Clone for PredictedIntent
impl Clone for PredictedIntent
source§fn clone(&self) -> PredictedIntent
fn clone(&self) -> PredictedIntent
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 PredictedIntent
impl Debug for PredictedIntent
source§impl PartialEq for PredictedIntent
impl PartialEq for PredictedIntent
source§fn eq(&self, other: &PredictedIntent) -> bool
fn eq(&self, other: &PredictedIntent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictedIntent
Auto Trait Implementations§
impl RefUnwindSafe for PredictedIntent
impl Send for PredictedIntent
impl Sync for PredictedIntent
impl Unpin for PredictedIntent
impl UnwindSafe for PredictedIntent
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.