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