Project::load_profile#
Reads per-bucket load and capacity of resources on the solved baseline of a Project. Read-only. For the load of hypothetical dates, use preview with a profile query instead.
Signature#
Takes &self. Synchronous and CPU-only.
Parameters#
| Name | Type | Description |
|---|---|---|
options |
&LoadProfileOptions |
Range, resources, basis, task lists and an optional baseline check. A ProfileQuery converts into it with .into(). |
Returns#
A LoadProfile.
Errors#
| Error | When |
|---|---|
Error::Project(ProjectError::NoBaseline) |
The project is unsolved, including after apply |
Error::Project(ProjectError::StaleBaseline) |
options.baseline_id doesn't name the current baseline |
Error::Input |
to <= from, or more than 100 000 buckets per resource (path to); an unknown resource (path resources) |
Example#
Print the overloaded days of a resource that works on two tasks at once.
use ;
Related#
Project- the type and its other methodsLoadProfileOptionsandProfileQuery- what the profile coversLoadProfile- the returned profile- Resource Load - querying, capacity modes and task lists