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().