pub struct UndoApplyPlan {
pub action: UndoHistoryAction,
pub preview: bool,
pub steps_requested: usize,
pub batches: Vec<OpBatch>,
pub steps: Vec<UndoApplyStep>,
pub message: String,
pub human_message: String,
}Expand description
Pure apply plan after batch selection: step order + stable messages.
Does not encode FS/store preflight outcomes — callers run
check_redaction_undo_safe, check_thread_worktree_undo_safe, etc.
before applying or advertising preview.
Fields§
§action: UndoHistoryAction§preview: bool§steps_requested: usize§batches: Vec<OpBatch>§steps: Vec<UndoApplyStep>Visit order for the apply engine (undo: reverse entries per batch).
message: StringMachine-oriented status line (Would undo 2 batches / Undone 1 batch).
human_message: StringHuman one-liner (Would undo 2 saved changes / Undid 1 saved change).
Implementations§
Source§impl UndoApplyPlan
impl UndoApplyPlan
pub fn batch_summaries(&self) -> Vec<UndoBatchSummary>
pub fn batch_count(&self) -> usize
Trait Implementations§
Source§impl Clone for UndoApplyPlan
impl Clone for UndoApplyPlan
Source§fn clone(&self) -> UndoApplyPlan
fn clone(&self) -> UndoApplyPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UndoApplyPlan
impl RefUnwindSafe for UndoApplyPlan
impl Send for UndoApplyPlan
impl Sync for UndoApplyPlan
impl Unpin for UndoApplyPlan
impl UnsafeUnpin for UndoApplyPlan
impl UnwindSafe for UndoApplyPlan
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