Struct aws_sdk_lexruntimev2::types::Intent
source · #[non_exhaustive]pub struct Intent {
pub name: String,
pub slots: Option<HashMap<String, Slot>>,
pub state: Option<IntentState>,
pub confirmation_state: Option<ConfirmationState>,
}Expand description
The current intent that Amazon Lex V2 is attempting to fulfill.
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 intent.
slots: Option<HashMap<String, Slot>>A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
state: Option<IntentState>Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
confirmation_state: Option<ConfirmationState>Indicates whether the intent has been Confirmed, Denied, or None if the confirmation stage has not yet been reached.
Implementations§
source§impl Intent
impl Intent
sourcepub fn slots(&self) -> Option<&HashMap<String, Slot>>
pub fn slots(&self) -> Option<&HashMap<String, Slot>>
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
sourcepub fn state(&self) -> Option<&IntentState>
pub fn state(&self) -> Option<&IntentState>
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
sourcepub fn confirmation_state(&self) -> Option<&ConfirmationState>
pub fn confirmation_state(&self) -> Option<&ConfirmationState>
Indicates whether the intent has been Confirmed, Denied, or None if the confirmation stage has not yet been reached.
Trait Implementations§
source§impl PartialEq for Intent
impl PartialEq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnwindSafe for Intent
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