pub struct EvaluatorAssignmentBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> EvaluatorAssignmentBuilder<S>
impl<S: State> EvaluatorAssignmentBuilder<S>
Sourcepub fn build(self) -> EvaluatorAssignmentwhere
S: IsComplete,
pub fn build(self) -> EvaluatorAssignmentwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn evaluator_id(
self,
value: String,
) -> EvaluatorAssignmentBuilder<SetEvaluatorId<S>>where
S::EvaluatorId: IsUnset,
pub fn evaluator_id(
self,
value: String,
) -> EvaluatorAssignmentBuilder<SetEvaluatorId<S>>where
S::EvaluatorId: IsUnset,
Required.
Stable identifier of the evaluator associated with this rule.
Sourcepub fn variable_mapping(
self,
value: Vec<PromptVariableMapping>,
) -> EvaluatorAssignmentBuilder<SetVariableMapping<S>>where
S::VariableMapping: IsUnset,
pub fn variable_mapping(
self,
value: Vec<PromptVariableMapping>,
) -> EvaluatorAssignmentBuilder<SetVariableMapping<S>>where
S::VariableMapping: IsUnset,
Sourcepub fn maybe_variable_mapping(
self,
value: Option<Vec<PromptVariableMapping>>,
) -> EvaluatorAssignmentBuilder<SetVariableMapping<S>>where
S::VariableMapping: IsUnset,
pub fn maybe_variable_mapping(
self,
value: Option<Vec<PromptVariableMapping>>,
) -> EvaluatorAssignmentBuilder<SetVariableMapping<S>>where
S::VariableMapping: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for EvaluatorAssignmentBuilder<S>
impl<S> RefUnwindSafe for EvaluatorAssignmentBuilder<S>
impl<S> Send for EvaluatorAssignmentBuilder<S>
impl<S> Sync for EvaluatorAssignmentBuilder<S>
impl<S> Unpin for EvaluatorAssignmentBuilder<S>
impl<S> UnsafeUnpin for EvaluatorAssignmentBuilder<S>
impl<S> UnwindSafe for EvaluatorAssignmentBuilder<S>
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