#[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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.