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
The value of a slot.
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 text of the utterance from the user that was entered for the slot.
interpreted_value: String
The value that Amazon Lex V2 determines for the slot. 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 additional values that have been recognized for the slot.
Implementations§
source§impl Value
impl Value
sourcepub fn original_value(&self) -> Option<&str>
pub fn original_value(&self) -> Option<&str>
The text of the utterance from the user that was entered for the slot.
sourcepub fn interpreted_value(&self) -> &str
pub fn interpreted_value(&self) -> &str
The value that Amazon Lex V2 determines for the slot. 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 additional values that have been recognized for the slot.
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()
.