#[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 ==.impl StructuralPartialEq for SlotValueOverrideBuilder
Auto Trait Implementations§
impl Freeze for SlotValueOverrideBuilder
impl RefUnwindSafe for SlotValueOverrideBuilder
impl Send for SlotValueOverrideBuilder
impl Sync for SlotValueOverrideBuilder
impl Unpin for SlotValueOverrideBuilder
impl UnwindSafe for SlotValueOverrideBuilder
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