Expand description
Purpose: Provide the public undo API for queue snapshot creation, listing, restore, and retention.
Responsibilities:
- Declare the
undochild modules. - Re-export the stable undo data models and operations.
Scope:
- Thin facade only; implementation lives in sibling files under
undo/.
Usage:
- Import undo helpers through
crate::undo.
Invariants/Assumptions:
- The public undo API remains stable across this split.
- Snapshot creation, restore, and pruning behavior remain unchanged.
Structs§
- Restore
Result - Result of a restore operation.
- Snapshot
List - Result of listing snapshots.
- Undo
Snapshot - Full snapshot content (stored in JSON file).
- Undo
Snapshot Meta - Metadata about a single undo snapshot.
Functions§
- create_
undo_ snapshot - Create a snapshot before a mutation operation.
- list_
undo_ snapshots - List available undo snapshots, newest first.
- load_
undo_ snapshot - Load a full snapshot by ID.
- prune_
old_ undo_ snapshots - Prune old snapshots to enforce retention limit.
- restore_
from_ snapshot - Restore queue state from a snapshot.
- undo_
cache_ dir - Get the undo cache directory path.