#[non_exhaustive]pub struct UserTurnSlotOutputBuilder { /* private fields */ }Expand description
A builder for UserTurnSlotOutput.
Implementations§
source§impl UserTurnSlotOutputBuilder
impl UserTurnSlotOutputBuilder
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value output by the slot recognition.
sourcepub fn values(self, input: UserTurnSlotOutput) -> Self
pub fn values(self, input: UserTurnSlotOutput) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
Values that are output by the slot recognition.
sourcepub fn set_values(self, input: Option<Vec<UserTurnSlotOutput>>) -> Self
pub fn set_values(self, input: Option<Vec<UserTurnSlotOutput>>) -> Self
Values that are output by the slot recognition.
sourcepub fn get_values(&self) -> &Option<Vec<UserTurnSlotOutput>>
pub fn get_values(&self) -> &Option<Vec<UserTurnSlotOutput>>
Values that are output by the slot recognition.
sourcepub fn sub_slots(self, k: impl Into<String>, v: UserTurnSlotOutput) -> Self
pub fn sub_slots(self, k: impl Into<String>, v: UserTurnSlotOutput) -> Self
Adds a key-value pair to sub_slots.
To override the contents of this collection use set_sub_slots.
A list of items mapping the name of the subslots to information about those subslots.
sourcepub fn set_sub_slots(
self,
input: Option<HashMap<String, UserTurnSlotOutput>>
) -> Self
pub fn set_sub_slots( self, input: Option<HashMap<String, UserTurnSlotOutput>> ) -> Self
A list of items mapping the name of the subslots to information about those subslots.
sourcepub fn get_sub_slots(&self) -> &Option<HashMap<String, UserTurnSlotOutput>>
pub fn get_sub_slots(&self) -> &Option<HashMap<String, UserTurnSlotOutput>>
A list of items mapping the name of the subslots to information about those subslots.
sourcepub fn build(self) -> UserTurnSlotOutput
pub fn build(self) -> UserTurnSlotOutput
Consumes the builder and constructs a UserTurnSlotOutput.
Trait Implementations§
source§impl Clone for UserTurnSlotOutputBuilder
impl Clone for UserTurnSlotOutputBuilder
source§fn clone(&self) -> UserTurnSlotOutputBuilder
fn clone(&self) -> UserTurnSlotOutputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UserTurnSlotOutputBuilder
impl Debug for UserTurnSlotOutputBuilder
source§impl Default for UserTurnSlotOutputBuilder
impl Default for UserTurnSlotOutputBuilder
source§fn default() -> UserTurnSlotOutputBuilder
fn default() -> UserTurnSlotOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UserTurnSlotOutputBuilder
impl PartialEq for UserTurnSlotOutputBuilder
source§fn eq(&self, other: &UserTurnSlotOutputBuilder) -> bool
fn eq(&self, other: &UserTurnSlotOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UserTurnSlotOutputBuilder
Auto Trait Implementations§
impl Freeze for UserTurnSlotOutputBuilder
impl RefUnwindSafe for UserTurnSlotOutputBuilder
impl Send for UserTurnSlotOutputBuilder
impl Sync for UserTurnSlotOutputBuilder
impl Unpin for UserTurnSlotOutputBuilder
impl UnwindSafe for UserTurnSlotOutputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.