Struct aws_sdk_lexruntimev2::types::builders::SlotBuilder
source · #[non_exhaustive]pub struct SlotBuilder { /* private fields */ }Expand description
A builder for Slot.
Implementations§
source§impl SlotBuilder
impl SlotBuilder
sourcepub fn shape(self, input: Shape) -> Self
pub fn shape(self, input: Shape) -> Self
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn set_shape(self, input: Option<Shape>) -> Self
pub fn set_shape(self, input: Option<Shape>) -> Self
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn get_shape(&self) -> &Option<Shape>
pub fn get_shape(&self) -> &Option<Shape>
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn values(self, input: Slot) -> Self
pub fn values(self, input: Slot) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn set_values(self, input: Option<Vec<Slot>>) -> Self
pub fn set_values(self, input: Option<Vec<Slot>>) -> Self
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn get_values(&self) -> &Option<Vec<Slot>>
pub fn get_values(&self) -> &Option<Vec<Slot>>
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn sub_slots(self, k: impl Into<String>, v: Slot) -> Self
pub fn sub_slots(self, k: impl Into<String>, v: Slot) -> Self
Adds a key-value pair to sub_slots.
To override the contents of this collection use set_sub_slots.
The constituent sub slots of a composite slot.
sourcepub fn set_sub_slots(self, input: Option<HashMap<String, Slot>>) -> Self
pub fn set_sub_slots(self, input: Option<HashMap<String, Slot>>) -> Self
The constituent sub slots of a composite slot.
Trait Implementations§
source§impl Clone for SlotBuilder
impl Clone for SlotBuilder
source§fn clone(&self) -> SlotBuilder
fn clone(&self) -> SlotBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlotBuilder
impl Debug for SlotBuilder
source§impl Default for SlotBuilder
impl Default for SlotBuilder
source§fn default() -> SlotBuilder
fn default() -> SlotBuilder
source§impl PartialEq for SlotBuilder
impl PartialEq for SlotBuilder
source§fn eq(&self, other: &SlotBuilder) -> bool
fn eq(&self, other: &SlotBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SlotBuilder
Auto Trait Implementations§
impl Freeze for SlotBuilder
impl RefUnwindSafe for SlotBuilder
impl Send for SlotBuilder
impl Sync for SlotBuilder
impl Unpin for SlotBuilder
impl UnwindSafe for SlotBuilder
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