#[non_exhaustive]pub struct UserTurnInputSpecificationBuilder { /* private fields */ }Expand description
A builder for UserTurnInputSpecification.
Implementations§
source§impl UserTurnInputSpecificationBuilder
impl UserTurnInputSpecificationBuilder
sourcepub fn utterance_input(self, input: UtteranceInputSpecification) -> Self
pub fn utterance_input(self, input: UtteranceInputSpecification) -> Self
The utterance input in the user turn.
sourcepub fn set_utterance_input(
self,
input: Option<UtteranceInputSpecification>
) -> Self
pub fn set_utterance_input( self, input: Option<UtteranceInputSpecification> ) -> Self
The utterance input in the user turn.
sourcepub fn get_utterance_input(&self) -> &Option<UtteranceInputSpecification>
pub fn get_utterance_input(&self) -> &Option<UtteranceInputSpecification>
The utterance input in the user turn.
sourcepub fn request_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn request_attributes( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to request_attributes.
To override the contents of this collection use set_request_attributes.
Request attributes of the user turn.
sourcepub fn set_request_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_request_attributes( self, input: Option<HashMap<String, String>> ) -> Self
Request attributes of the user turn.
sourcepub fn get_request_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_request_attributes(&self) -> &Option<HashMap<String, String>>
Request attributes of the user turn.
sourcepub fn session_state(self, input: InputSessionStateSpecification) -> Self
pub fn session_state(self, input: InputSessionStateSpecification) -> Self
Contains information about the session state in the input.
sourcepub fn set_session_state(
self,
input: Option<InputSessionStateSpecification>
) -> Self
pub fn set_session_state( self, input: Option<InputSessionStateSpecification> ) -> Self
Contains information about the session state in the input.
sourcepub fn get_session_state(&self) -> &Option<InputSessionStateSpecification>
pub fn get_session_state(&self) -> &Option<InputSessionStateSpecification>
Contains information about the session state in the input.
sourcepub fn build(self) -> UserTurnInputSpecification
pub fn build(self) -> UserTurnInputSpecification
Consumes the builder and constructs a UserTurnInputSpecification.
Trait Implementations§
source§impl Clone for UserTurnInputSpecificationBuilder
impl Clone for UserTurnInputSpecificationBuilder
source§fn clone(&self) -> UserTurnInputSpecificationBuilder
fn clone(&self) -> UserTurnInputSpecificationBuilder
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 Default for UserTurnInputSpecificationBuilder
impl Default for UserTurnInputSpecificationBuilder
source§fn default() -> UserTurnInputSpecificationBuilder
fn default() -> UserTurnInputSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UserTurnInputSpecificationBuilder
impl PartialEq for UserTurnInputSpecificationBuilder
source§fn eq(&self, other: &UserTurnInputSpecificationBuilder) -> bool
fn eq(&self, other: &UserTurnInputSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UserTurnInputSpecificationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for UserTurnInputSpecificationBuilder
impl Send for UserTurnInputSpecificationBuilder
impl Sync for UserTurnInputSpecificationBuilder
impl Unpin for UserTurnInputSpecificationBuilder
impl UnwindSafe for UserTurnInputSpecificationBuilder
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