#[non_exhaustive]pub struct UserTurnOutputSpecificationBuilder { /* private fields */ }
Expand description
A builder for UserTurnOutputSpecification
.
Implementations§
source§impl UserTurnOutputSpecificationBuilder
impl UserTurnOutputSpecificationBuilder
sourcepub fn intent(self, input: UserTurnIntentOutput) -> Self
pub fn intent(self, input: UserTurnIntentOutput) -> Self
Contains information about the intent.
This field is required.sourcepub fn set_intent(self, input: Option<UserTurnIntentOutput>) -> Self
pub fn set_intent(self, input: Option<UserTurnIntentOutput>) -> Self
Contains information about the intent.
sourcepub fn get_intent(&self) -> &Option<UserTurnIntentOutput>
pub fn get_intent(&self) -> &Option<UserTurnIntentOutput>
Contains information about the intent.
sourcepub fn active_contexts(self, input: ActiveContext) -> Self
pub fn active_contexts(self, input: ActiveContext) -> Self
Appends an item to active_contexts
.
To override the contents of this collection use set_active_contexts
.
The contexts that are active in the turn.
sourcepub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
pub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
The contexts that are active in the turn.
sourcepub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
pub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
The contexts that are active in the turn.
sourcepub fn transcript(self, input: impl Into<String>) -> Self
pub fn transcript(self, input: impl Into<String>) -> Self
The transcript that is output for the user turn by the test execution.
sourcepub fn set_transcript(self, input: Option<String>) -> Self
pub fn set_transcript(self, input: Option<String>) -> Self
The transcript that is output for the user turn by the test execution.
sourcepub fn get_transcript(&self) -> &Option<String>
pub fn get_transcript(&self) -> &Option<String>
The transcript that is output for the user turn by the test execution.
sourcepub fn build(self) -> UserTurnOutputSpecification
pub fn build(self) -> UserTurnOutputSpecification
Consumes the builder and constructs a UserTurnOutputSpecification
.
Trait Implementations§
source§impl Clone for UserTurnOutputSpecificationBuilder
impl Clone for UserTurnOutputSpecificationBuilder
source§fn clone(&self) -> UserTurnOutputSpecificationBuilder
fn clone(&self) -> UserTurnOutputSpecificationBuilder
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 UserTurnOutputSpecificationBuilder
impl Default for UserTurnOutputSpecificationBuilder
source§fn default() -> UserTurnOutputSpecificationBuilder
fn default() -> UserTurnOutputSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UserTurnOutputSpecificationBuilder
impl PartialEq for UserTurnOutputSpecificationBuilder
source§fn eq(&self, other: &UserTurnOutputSpecificationBuilder) -> bool
fn eq(&self, other: &UserTurnOutputSpecificationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserTurnOutputSpecificationBuilder
Auto Trait Implementations§
impl Freeze for UserTurnOutputSpecificationBuilder
impl RefUnwindSafe for UserTurnOutputSpecificationBuilder
impl Send for UserTurnOutputSpecificationBuilder
impl Sync for UserTurnOutputSpecificationBuilder
impl Unpin for UserTurnOutputSpecificationBuilder
impl UnwindSafe for UserTurnOutputSpecificationBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.