#[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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.