#[non_exhaustive]pub struct SlotValueOverrideBuilder { /* private fields */ }
Expand description
A builder for SlotValueOverride
.
Implementations§
source§impl SlotValueOverrideBuilder
impl SlotValueOverrideBuilder
sourcepub fn shape(self, input: SlotShape) -> Self
pub fn shape(self, input: SlotShape) -> 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<SlotShape>) -> Self
pub fn set_shape(self, input: Option<SlotShape>) -> 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<SlotShape>
pub fn get_shape(&self) -> &Option<SlotShape>
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: SlotValueOverride) -> Self
pub fn values(self, input: SlotValueOverride) -> 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, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn set_values(self, input: Option<Vec<SlotValueOverride>>) -> Self
pub fn set_values(self, input: Option<Vec<SlotValueOverride>>) -> Self
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn get_values(&self) -> &Option<Vec<SlotValueOverride>>
pub fn get_values(&self) -> &Option<Vec<SlotValueOverride>>
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn build(self) -> SlotValueOverride
pub fn build(self) -> SlotValueOverride
Consumes the builder and constructs a SlotValueOverride
.
Trait Implementations§
source§impl Clone for SlotValueOverrideBuilder
impl Clone for SlotValueOverrideBuilder
source§fn clone(&self) -> SlotValueOverrideBuilder
fn clone(&self) -> SlotValueOverrideBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SlotValueOverrideBuilder
impl Debug for SlotValueOverrideBuilder
source§impl Default for SlotValueOverrideBuilder
impl Default for SlotValueOverrideBuilder
source§fn default() -> SlotValueOverrideBuilder
fn default() -> SlotValueOverrideBuilder
source§impl PartialEq for SlotValueOverrideBuilder
impl PartialEq for SlotValueOverrideBuilder
source§fn eq(&self, other: &SlotValueOverrideBuilder) -> bool
fn eq(&self, other: &SlotValueOverrideBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.