Struct aws_sdk_lexruntimev2::types::builders::RuntimeHintsBuilder
source · #[non_exhaustive]pub struct RuntimeHintsBuilder { /* private fields */ }Expand description
A builder for RuntimeHints.
Implementations§
source§impl RuntimeHintsBuilder
impl RuntimeHintsBuilder
sourcepub fn slot_hints(
self,
k: impl Into<String>,
v: HashMap<String, RuntimeHintDetails>
) -> Self
pub fn slot_hints( self, k: impl Into<String>, v: HashMap<String, RuntimeHintDetails> ) -> Self
Adds a key-value pair to slot_hints.
To override the contents of this collection use set_slot_hints.
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn set_slot_hints(
self,
input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
) -> Self
pub fn set_slot_hints( self, input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>> ) -> Self
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn get_slot_hints(
&self
) -> &Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
pub fn get_slot_hints( &self ) -> &Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn build(self) -> RuntimeHints
pub fn build(self) -> RuntimeHints
Consumes the builder and constructs a RuntimeHints.
Trait Implementations§
source§impl Clone for RuntimeHintsBuilder
impl Clone for RuntimeHintsBuilder
source§fn clone(&self) -> RuntimeHintsBuilder
fn clone(&self) -> RuntimeHintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RuntimeHintsBuilder
impl Debug for RuntimeHintsBuilder
source§impl Default for RuntimeHintsBuilder
impl Default for RuntimeHintsBuilder
source§fn default() -> RuntimeHintsBuilder
fn default() -> RuntimeHintsBuilder
source§impl PartialEq for RuntimeHintsBuilder
impl PartialEq for RuntimeHintsBuilder
source§fn eq(&self, other: &RuntimeHintsBuilder) -> bool
fn eq(&self, other: &RuntimeHintsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RuntimeHintsBuilder
Auto Trait Implementations§
impl Freeze for RuntimeHintsBuilder
impl RefUnwindSafe for RuntimeHintsBuilder
impl Send for RuntimeHintsBuilder
impl Sync for RuntimeHintsBuilder
impl Unpin for RuntimeHintsBuilder
impl UnwindSafe for RuntimeHintsBuilder
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