PreviewOptions#
Options passed to Project::preview. PreviewOptions::default() previews the whole project with no analytics, no reasons, no baseline check and no load profile. Set individual fields with struct update syntax.
Declaration#
Fields#
| Field | Type | Default | Description |
|---|---|---|---|
subtree |
Option<Subtree> |
None |
Limits scheduling to one task's subtree and what depends on it. None schedules the whole project. |
analytics |
AnalyticsOptions |
nothing requested | Analytics to compute for the previewed dates. Fills the result's analytics field. |
reasons |
bool |
false |
true sets reason on each Mutation in the result's updates. |
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. |
profile |
Option<ProfileQuery> |
None |
Some fills the result's profile with a LoadProfile of the previewed dates. An invalid query makes the call fail with Error::Input. |
PreviewOptions has the same subtree, analytics and reasons fields as SolveOptions, but no include_unchanged: preview results are always sparse.
Example#
use ;
Related#
Project::preview- the call that takes these optionsSchedulingChanges- the edits being previewedScheduleResult- the result these options shape- Previewing Changes - previews, baseline tokens and load in a preview
- Reschedule a branch - previewing with a
subtreescope