Struct aws_sdk_lexruntimev2::types::Value
source · #[non_exhaustive]pub struct Value {
pub original_value: Option<String>,
pub interpreted_value: String,
pub resolved_values: Option<Vec<String>>,
}Expand description
Information about the value provided for a slot and Amazon Lex V2's interpretation.
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.original_value: Option<String>The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
interpreted_value: StringThe value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex V2 choose the first value in the resolvedValues list.
resolved_values: Option<Vec<String>>A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the interpretedValue.
Implementations§
source§impl Value
impl Value
sourcepub fn original_value(&self) -> Option<&str>
pub fn original_value(&self) -> Option<&str>
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
sourcepub fn interpreted_value(&self) -> &str
pub fn interpreted_value(&self) -> &str
The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex V2 choose the first value in the resolvedValues list.
sourcepub fn resolved_values(&self) -> &[String]
pub fn resolved_values(&self) -> &[String]
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the interpretedValue.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resolved_values.is_none().
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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