#[non_exhaustive]pub struct RuntimeHintDetailsBuilder { /* private fields */ }Expand description
A builder for RuntimeHintDetails.
Implementations§
source§impl RuntimeHintDetailsBuilder
impl RuntimeHintDetailsBuilder
sourcepub fn runtime_hint_values(self, input: RuntimeHintValue) -> Self
pub fn runtime_hint_values(self, input: RuntimeHintValue) -> Self
Appends an item to runtime_hint_values.
To override the contents of this collection use set_runtime_hint_values.
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.
sourcepub fn set_runtime_hint_values(
self,
input: Option<Vec<RuntimeHintValue>>
) -> Self
pub fn set_runtime_hint_values( self, input: Option<Vec<RuntimeHintValue>> ) -> Self
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.
sourcepub fn get_runtime_hint_values(&self) -> &Option<Vec<RuntimeHintValue>>
pub fn get_runtime_hint_values(&self) -> &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.
sourcepub fn sub_slot_hints(self, k: impl Into<String>, v: RuntimeHintDetails) -> Self
pub fn sub_slot_hints(self, k: impl Into<String>, v: RuntimeHintDetails) -> Self
Adds a key-value pair to sub_slot_hints.
To override the contents of this collection use set_sub_slot_hints.
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.
sourcepub fn set_sub_slot_hints(
self,
input: Option<HashMap<String, RuntimeHintDetails>>
) -> Self
pub fn set_sub_slot_hints( self, input: Option<HashMap<String, RuntimeHintDetails>> ) -> Self
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.
sourcepub fn get_sub_slot_hints(&self) -> &Option<HashMap<String, RuntimeHintDetails>>
pub fn get_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.
sourcepub fn build(self) -> RuntimeHintDetails
pub fn build(self) -> RuntimeHintDetails
Consumes the builder and constructs a RuntimeHintDetails.
Trait Implementations§
source§impl Clone for RuntimeHintDetailsBuilder
impl Clone for RuntimeHintDetailsBuilder
source§fn clone(&self) -> RuntimeHintDetailsBuilder
fn clone(&self) -> RuntimeHintDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RuntimeHintDetailsBuilder
impl Debug for RuntimeHintDetailsBuilder
source§impl Default for RuntimeHintDetailsBuilder
impl Default for RuntimeHintDetailsBuilder
source§fn default() -> RuntimeHintDetailsBuilder
fn default() -> RuntimeHintDetailsBuilder
source§impl PartialEq for RuntimeHintDetailsBuilder
impl PartialEq for RuntimeHintDetailsBuilder
source§fn eq(&self, other: &RuntimeHintDetailsBuilder) -> bool
fn eq(&self, other: &RuntimeHintDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RuntimeHintDetailsBuilder
Auto Trait Implementations§
impl Freeze for RuntimeHintDetailsBuilder
impl RefUnwindSafe for RuntimeHintDetailsBuilder
impl Send for RuntimeHintDetailsBuilder
impl Sync for RuntimeHintDetailsBuilder
impl Unpin for RuntimeHintDetailsBuilder
impl UnwindSafe for RuntimeHintDetailsBuilder
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