#[non_exhaustive]pub struct UserTurnIntentOutputBuilder { /* private fields */ }Expand description
A builder for UserTurnIntentOutput.
Implementations§
source§impl UserTurnIntentOutputBuilder
impl UserTurnIntentOutputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the intent.
This field is required.sourcepub fn slots(self, k: impl Into<String>, v: UserTurnSlotOutput) -> Self
pub fn slots(self, k: impl Into<String>, v: UserTurnSlotOutput) -> Self
Adds a key-value pair to slots.
To override the contents of this collection use set_slots.
The slots associated with the intent.
sourcepub fn set_slots(
self,
input: Option<HashMap<String, UserTurnSlotOutput>>
) -> Self
pub fn set_slots( self, input: Option<HashMap<String, UserTurnSlotOutput>> ) -> Self
The slots associated with the intent.
sourcepub fn get_slots(&self) -> &Option<HashMap<String, UserTurnSlotOutput>>
pub fn get_slots(&self) -> &Option<HashMap<String, UserTurnSlotOutput>>
The slots associated with the intent.
sourcepub fn build(self) -> Result<UserTurnIntentOutput, BuildError>
pub fn build(self) -> Result<UserTurnIntentOutput, BuildError>
Consumes the builder and constructs a UserTurnIntentOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UserTurnIntentOutputBuilder
impl Clone for UserTurnIntentOutputBuilder
source§fn clone(&self) -> UserTurnIntentOutputBuilder
fn clone(&self) -> UserTurnIntentOutputBuilder
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 UserTurnIntentOutputBuilder
impl Debug for UserTurnIntentOutputBuilder
source§impl Default for UserTurnIntentOutputBuilder
impl Default for UserTurnIntentOutputBuilder
source§fn default() -> UserTurnIntentOutputBuilder
fn default() -> UserTurnIntentOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UserTurnIntentOutputBuilder
impl PartialEq for UserTurnIntentOutputBuilder
source§fn eq(&self, other: &UserTurnIntentOutputBuilder) -> bool
fn eq(&self, other: &UserTurnIntentOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UserTurnIntentOutputBuilder
Auto Trait Implementations§
impl Freeze for UserTurnIntentOutputBuilder
impl RefUnwindSafe for UserTurnIntentOutputBuilder
impl Send for UserTurnIntentOutputBuilder
impl Sync for UserTurnIntentOutputBuilder
impl Unpin for UserTurnIntentOutputBuilder
impl UnwindSafe for UserTurnIntentOutputBuilder
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.