#[non_exhaustive]pub struct IntentLevelSlotResolutionTestResultItem {
pub intent_name: String,
pub multi_turn_conversation: bool,
pub slot_resolution_results: Vec<SlotResolutionTestResultItem>,
}
Expand description
Information about intent-level slot resolution in a test result.
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.intent_name: String
The name of the intent that was recognized.
multi_turn_conversation: bool
Indicates whether the conversation involves multiple turns or not.
slot_resolution_results: Vec<SlotResolutionTestResultItem>
The results for the slot resolution in the test execution result.
Implementations§
source§impl IntentLevelSlotResolutionTestResultItem
impl IntentLevelSlotResolutionTestResultItem
sourcepub fn intent_name(&self) -> &str
pub fn intent_name(&self) -> &str
The name of the intent that was recognized.
sourcepub fn multi_turn_conversation(&self) -> bool
pub fn multi_turn_conversation(&self) -> bool
Indicates whether the conversation involves multiple turns or not.
sourcepub fn slot_resolution_results(&self) -> &[SlotResolutionTestResultItem]
pub fn slot_resolution_results(&self) -> &[SlotResolutionTestResultItem]
The results for the slot resolution in the test execution result.
source§impl IntentLevelSlotResolutionTestResultItem
impl IntentLevelSlotResolutionTestResultItem
sourcepub fn builder() -> IntentLevelSlotResolutionTestResultItemBuilder
pub fn builder() -> IntentLevelSlotResolutionTestResultItemBuilder
Creates a new builder-style object to manufacture IntentLevelSlotResolutionTestResultItem
.
Trait Implementations§
source§impl Clone for IntentLevelSlotResolutionTestResultItem
impl Clone for IntentLevelSlotResolutionTestResultItem
source§fn clone(&self) -> IntentLevelSlotResolutionTestResultItem
fn clone(&self) -> IntentLevelSlotResolutionTestResultItem
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 PartialEq for IntentLevelSlotResolutionTestResultItem
impl PartialEq for IntentLevelSlotResolutionTestResultItem
source§fn eq(&self, other: &IntentLevelSlotResolutionTestResultItem) -> bool
fn eq(&self, other: &IntentLevelSlotResolutionTestResultItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IntentLevelSlotResolutionTestResultItem
Auto Trait Implementations§
impl RefUnwindSafe for IntentLevelSlotResolutionTestResultItem
impl Send for IntentLevelSlotResolutionTestResultItem
impl Sync for IntentLevelSlotResolutionTestResultItem
impl Unpin for IntentLevelSlotResolutionTestResultItem
impl UnwindSafe for IntentLevelSlotResolutionTestResultItem
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.