#[non_exhaustive]pub struct UserTurnOutputSpecification {
pub intent: Option<UserTurnIntentOutput>,
pub active_contexts: Option<Vec<ActiveContext>>,
pub transcript: Option<String>,
}Expand description
Contains results that are output for the user turn by the test execution.
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: Option<UserTurnIntentOutput>Contains information about the intent.
active_contexts: Option<Vec<ActiveContext>>The contexts that are active in the turn.
transcript: Option<String>The transcript that is output for the user turn by the test execution.
Implementations§
source§impl UserTurnOutputSpecification
impl UserTurnOutputSpecification
sourcepub fn intent(&self) -> Option<&UserTurnIntentOutput>
pub fn intent(&self) -> Option<&UserTurnIntentOutput>
Contains information about the intent.
sourcepub fn active_contexts(&self) -> Option<&[ActiveContext]>
pub fn active_contexts(&self) -> Option<&[ActiveContext]>
The contexts that are active in the turn.
sourcepub fn transcript(&self) -> Option<&str>
pub fn transcript(&self) -> Option<&str>
The transcript that is output for the user turn by the test execution.
source§impl UserTurnOutputSpecification
impl UserTurnOutputSpecification
sourcepub fn builder() -> UserTurnOutputSpecificationBuilder
pub fn builder() -> UserTurnOutputSpecificationBuilder
Creates a new builder-style object to manufacture UserTurnOutputSpecification.
Trait Implementations§
source§impl Clone for UserTurnOutputSpecification
impl Clone for UserTurnOutputSpecification
source§fn clone(&self) -> UserTurnOutputSpecification
fn clone(&self) -> UserTurnOutputSpecification
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 UserTurnOutputSpecification
impl Debug for UserTurnOutputSpecification
source§impl PartialEq for UserTurnOutputSpecification
impl PartialEq for UserTurnOutputSpecification
source§fn eq(&self, other: &UserTurnOutputSpecification) -> bool
fn eq(&self, other: &UserTurnOutputSpecification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UserTurnOutputSpecification
Auto Trait Implementations§
impl RefUnwindSafe for UserTurnOutputSpecification
impl Send for UserTurnOutputSpecification
impl Sync for UserTurnOutputSpecification
impl Unpin for UserTurnOutputSpecification
impl UnwindSafe for UserTurnOutputSpecification
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