pub struct UndoReport {
pub target_action: ActionId,
pub recorded_as: Option<ActionId>,
pub paths_restored: usize,
pub forced: bool,
pub dry_run: bool,
pub plan: Vec<String>,
pub warnings: Vec<String>,
pub restored_paths: Vec<PathBuf>,
}Fields§
§target_action: ActionIdThe action whose effect was reverted (undo) or re-applied (redo).
recorded_as: Option<ActionId>The new journal row recording this undo/redo (absent on dry-run).
paths_restored: usize§forced: bool§dry_run: bool§plan: Vec<String>Human-readable restore plan, one line per path.
warnings: Vec<String>§restored_paths: Vec<PathBuf>The paths actually restored. A directory restore replaces the directory
itself (stage-then-swap), so a shell standing inside one is left with a
stale cwd; the CLI uses this to tell the user to cd ..
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UndoReport
impl RefUnwindSafe for UndoReport
impl Send for UndoReport
impl Sync for UndoReport
impl Unpin for UndoReport
impl UnsafeUnpin for UndoReport
impl UnwindSafe for UndoReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more