#[non_exhaustive]pub struct UserTurnInputSpecification {
pub utterance_input: Option<UtteranceInputSpecification>,
pub request_attributes: Option<HashMap<String, String>>,
pub session_state: Option<InputSessionStateSpecification>,
}
Expand description
Contains information about the user messages in the turn in the input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.utterance_input: Option<UtteranceInputSpecification>
The utterance input in the user turn.
request_attributes: Option<HashMap<String, String>>
Request attributes of the user turn.
session_state: Option<InputSessionStateSpecification>
Contains information about the session state in the input.
Implementations§
source§impl UserTurnInputSpecification
impl UserTurnInputSpecification
sourcepub fn utterance_input(&self) -> Option<&UtteranceInputSpecification>
pub fn utterance_input(&self) -> Option<&UtteranceInputSpecification>
The utterance input in the user turn.
sourcepub fn request_attributes(&self) -> Option<&HashMap<String, String>>
pub fn request_attributes(&self) -> Option<&HashMap<String, String>>
Request attributes of the user turn.
sourcepub fn session_state(&self) -> Option<&InputSessionStateSpecification>
pub fn session_state(&self) -> Option<&InputSessionStateSpecification>
Contains information about the session state in the input.
source§impl UserTurnInputSpecification
impl UserTurnInputSpecification
sourcepub fn builder() -> UserTurnInputSpecificationBuilder
pub fn builder() -> UserTurnInputSpecificationBuilder
Creates a new builder-style object to manufacture UserTurnInputSpecification
.
Trait Implementations§
source§impl Clone for UserTurnInputSpecification
impl Clone for UserTurnInputSpecification
source§fn clone(&self) -> UserTurnInputSpecification
fn clone(&self) -> UserTurnInputSpecification
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 UserTurnInputSpecification
impl Debug for UserTurnInputSpecification
source§impl PartialEq for UserTurnInputSpecification
impl PartialEq for UserTurnInputSpecification
source§fn eq(&self, other: &UserTurnInputSpecification) -> bool
fn eq(&self, other: &UserTurnInputSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserTurnInputSpecification
Auto Trait Implementations§
impl RefUnwindSafe for UserTurnInputSpecification
impl Send for UserTurnInputSpecification
impl Sync for UserTurnInputSpecification
impl Unpin for UserTurnInputSpecification
impl UnwindSafe for UserTurnInputSpecification
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.