pub struct SeededTurnPlannerBuilder { /* private fields */ }Expand description
Collects everything a SeededTurnPlanner needs.
Implementations§
Source§impl SeededTurnPlannerBuilder
impl SeededTurnPlannerBuilder
Sourcepub fn definitions(self, definitions: WorkflowDefinitions) -> Self
pub fn definitions(self, definitions: WorkflowDefinitions) -> Self
Sets the workflow definitions.
Sourcepub fn understander(self, understander: Arc<dyn TurnUnderstander>) -> Self
pub fn understander(self, understander: Arc<dyn TurnUnderstander>) -> Self
Sets what understands each turn.
Sourcepub fn policy(self, policy: PolicySnapshot) -> Self
pub fn policy(self, policy: PolicySnapshot) -> Self
Sets the policy snapshot.
Sourcepub fn config(self, config: OrchestratorConfig) -> Self
pub fn config(self, config: OrchestratorConfig) -> Self
Sets the configuration.
Sourcepub fn case_id_factory(self, factory: Arc<dyn CaseIdFactory>) -> Self
pub fn case_id_factory(self, factory: Arc<dyn CaseIdFactory>) -> Self
Sets the factory of new case identifiers.
Sourcepub fn build(self) -> Result<SeededTurnPlanner, BuildError>
pub fn build(self) -> Result<SeededTurnPlanner, BuildError>
Builds the planner.
§Errors
crate::orchestrator::BuildError for a missing part or an invalid configuration.
Trait Implementations§
Source§impl Debug for SeededTurnPlannerBuilder
impl Debug for SeededTurnPlannerBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for SeededTurnPlannerBuilder
impl !UnwindSafe for SeededTurnPlannerBuilder
impl Freeze for SeededTurnPlannerBuilder
impl Send for SeededTurnPlannerBuilder
impl Sync for SeededTurnPlannerBuilder
impl Unpin for SeededTurnPlannerBuilder
impl UnsafeUnpin for SeededTurnPlannerBuilder
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