GapBehavior#
Selects how auto-scheduled tasks are placed relative to their links: kept at their current (preferred) dates where the links allow it, or pulled to the earliest position. It's the type of SchedulingConfig::gap_behavior, where the default is GapBehavior::Preserve.
Declaration#
With the serde feature, the enum implements Serialize and Deserialize and uses the lowercase spellings "preserve" and "compress".
Variants#
| Variant | Description |
|---|---|
Preserve |
A task keeps its current dates unless a link or constraint pushes it. Gaps between linked tasks stay as they are. |
Compress |
Every auto-scheduled task moves to the earliest position its links and constraints allow, closing gaps. Summaries don't move as blocks: their links apply to the leaf tasks, as with move_projects: false. |
Example#
use ;
Related#
SchedulingConfig- the config field that sets the behaviorLinkData- the links that push or pull tasks under each behavior- Links, constraints and summaries - how preserve and compress place linked tasks
- Scheduling a Project - how
project_startinteracts with each behavior