#[non_exhaustive]pub struct UserTurnIntentOutputBuilder { /* private fields */ }Expand description
A builder for UserTurnIntentOutput.
Implementations§
source§impl UserTurnIntentOutputBuilder
impl UserTurnIntentOutputBuilder
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) -> UserTurnIntentOutput
pub fn build(self) -> UserTurnIntentOutput
Consumes the builder and constructs a UserTurnIntentOutput.
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 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