Struct aws_sdk_lexruntimev2::types::RuntimeHintDetails
source · #[non_exhaustive]pub struct RuntimeHintDetails {
pub runtime_hint_values: Option<Vec<RuntimeHintValue>>,
pub sub_slot_hints: Option<HashMap<String, RuntimeHintDetails>>,
}
Expand description
Provides an array of phrases that should be given preference when resolving values for 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.runtime_hint_values: Option<Vec<RuntimeHintValue>>
One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference when deciding on slot values.
sub_slot_hints: Option<HashMap<String, RuntimeHintDetails>>
A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the constituent sub slot names must exist.
Implementations§
source§impl RuntimeHintDetails
impl RuntimeHintDetails
sourcepub fn runtime_hint_values(&self) -> &[RuntimeHintValue]
pub fn runtime_hint_values(&self) -> &[RuntimeHintValue]
One or more strings that Amazon Lex V2 should look for in the input to the bot. Each phrase is given preference when deciding on slot values.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .runtime_hint_values.is_none()
.
sourcepub fn sub_slot_hints(&self) -> Option<&HashMap<String, RuntimeHintDetails>>
pub fn sub_slot_hints(&self) -> Option<&HashMap<String, RuntimeHintDetails>>
A map of constituent sub slot names inside a composite slot in the intent and the phrases that should be added for each sub slot. Inside each composite slot hints, this structure provides a mechanism to add granular sub slot phrases. Only sub slot hints are supported for composite slots. The intent name, composite slot name and the constituent sub slot names must exist.
source§impl RuntimeHintDetails
impl RuntimeHintDetails
sourcepub fn builder() -> RuntimeHintDetailsBuilder
pub fn builder() -> RuntimeHintDetailsBuilder
Creates a new builder-style object to manufacture RuntimeHintDetails
.
Trait Implementations§
source§impl Clone for RuntimeHintDetails
impl Clone for RuntimeHintDetails
source§fn clone(&self) -> RuntimeHintDetails
fn clone(&self) -> RuntimeHintDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuntimeHintDetails
impl Debug for RuntimeHintDetails
source§impl PartialEq for RuntimeHintDetails
impl PartialEq for RuntimeHintDetails
source§fn eq(&self, other: &RuntimeHintDetails) -> bool
fn eq(&self, other: &RuntimeHintDetails) -> bool
self
and other
values to be equal, and is used
by ==
.