LoadProfile#
Per-bucket load and capacity of a set of resources over a date range. Returned by Project::load_profile for the solved baseline, and in ScheduleResult::profile by Project::preview when PreviewOptions::profile is set, for the previewed dates.
Declaration#
With the serde feature, LoadProfile implements Serialize and Deserialize with camelCase field names.
Fields#
| Field | Type | Description |
|---|---|---|
basis |
Basis |
The bucket size used for every bucket in the profile. It's the query's basis when one was set, otherwise the basis derived from config.duration_unit. |
resources |
Vec<ResourceLoad> |
One entry per selected resource, in input order. The query's resources list picks them; when it's None, every resource of the project is here. |
The query that controls the range, the resources and the task lists is ProfileQuery.
Example#
use ;
Related#
ProfileQuery- selects the range, resources and basis of the profileResourceLoad- one entry per resource in the profilePreviewOptions- requests a profile of previewed dates- Resource Load - queries and reads profiles
- Serialize results to JSON - shows the profile's JSON form