#[non_exhaustive]pub struct UserTurnSpecificationBuilder { /* private fields */ }Expand description
A builder for UserTurnSpecification.
Implementations§
source§impl UserTurnSpecificationBuilder
impl UserTurnSpecificationBuilder
sourcepub fn input(self, input: UserTurnInputSpecification) -> Self
pub fn input(self, input: UserTurnInputSpecification) -> Self
Contains information about the user messages in the turn in the input.
This field is required.sourcepub fn set_input(self, input: Option<UserTurnInputSpecification>) -> Self
pub fn set_input(self, input: Option<UserTurnInputSpecification>) -> Self
Contains information about the user messages in the turn in the input.
sourcepub fn get_input(&self) -> &Option<UserTurnInputSpecification>
pub fn get_input(&self) -> &Option<UserTurnInputSpecification>
Contains information about the user messages in the turn in the input.
sourcepub fn expected(self, input: UserTurnOutputSpecification) -> Self
pub fn expected(self, input: UserTurnOutputSpecification) -> Self
Contains results about the expected output for the user turn.
This field is required.sourcepub fn set_expected(self, input: Option<UserTurnOutputSpecification>) -> Self
pub fn set_expected(self, input: Option<UserTurnOutputSpecification>) -> Self
Contains results about the expected output for the user turn.
sourcepub fn get_expected(&self) -> &Option<UserTurnOutputSpecification>
pub fn get_expected(&self) -> &Option<UserTurnOutputSpecification>
Contains results about the expected output for the user turn.
sourcepub fn build(self) -> UserTurnSpecification
pub fn build(self) -> UserTurnSpecification
Consumes the builder and constructs a UserTurnSpecification.
Trait Implementations§
source§impl Clone for UserTurnSpecificationBuilder
impl Clone for UserTurnSpecificationBuilder
source§fn clone(&self) -> UserTurnSpecificationBuilder
fn clone(&self) -> UserTurnSpecificationBuilder
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 UserTurnSpecificationBuilder
impl Debug for UserTurnSpecificationBuilder
source§impl Default for UserTurnSpecificationBuilder
impl Default for UserTurnSpecificationBuilder
source§fn default() -> UserTurnSpecificationBuilder
fn default() -> UserTurnSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UserTurnSpecificationBuilder
impl PartialEq for UserTurnSpecificationBuilder
source§fn eq(&self, other: &UserTurnSpecificationBuilder) -> bool
fn eq(&self, other: &UserTurnSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UserTurnSpecificationBuilder
Auto Trait Implementations§
impl Freeze for UserTurnSpecificationBuilder
impl RefUnwindSafe for UserTurnSpecificationBuilder
impl Send for UserTurnSpecificationBuilder
impl Sync for UserTurnSpecificationBuilder
impl Unpin for UserTurnSpecificationBuilder
impl UnwindSafe for UserTurnSpecificationBuilder
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.