EvaluateOptions#
Options passed to Project::evaluate and Project::evaluate_with. EvaluateOptions::default() scores only the scheduled stage, reports no per-task figures, skips the baseline check and keeps stored leveling delays. Set individual fields with struct update syntax.
Declaration#
Fields#
| Field | Type | Default | Description |
|---|---|---|---|
baseline_id |
Option<String> |
None |
Expected baseline token. Some makes the call fail with ProjectError::StaleBaseline unless it names the current baseline. Take it from the latest ScheduleResult's baseline_id. |
level |
Option<LevelingOptions> |
None |
Some levels each candidate with these options after scheduling it and fills CandidateResult::leveled. None scores the scheduled stage only. Options that are invalid for the baseline make the call fail with Error::Input. |
focus |
Vec<Id> |
empty | Tasks to report finish and overload for. Each id adds one entry, in this order, to Finish::tasks and Overload::focus of every stage. An unknown task makes the call fail with Error::Input at path focus[i]. |
clear_first |
bool |
false |
true scores the baseline and every candidate against a copy of the accepted state with leveling_delay and pauses cleared on in-scope tasks. See clear_first below. |
clear_first#
The scope is level.scope.tasks when level sets it, otherwise every task, also when level is None. The cleared copy is solved once and replaces the accepted state as the reference for the baseline and every candidate.
- It's independent of
LevelingOptions::clear_first, so it also applies to scheduled-stage scoring. - It adds no errors:
baseline_id, candidate tokens,levelandfocusare checked against the accepted state before anything is cleared. - When nothing in scope has a delay or pause, the output is identical to
clear_first: false.
See Evaluating alternatives for when to use it and how to combine it with level.
Example#
use ;
Related#
Project::evaluate- the call that takes these optionsLevelingOptions- the options of the leveled stage set bylevelEvaluateResult- the result these options shape- Evaluating Alternatives - what each option does in a scoring run
- Preview leveling - when to score leveling with
evaluateinstead of a clone