pub struct DryRunModeExecutor { /* private fields */ }Expand description
Dry-run mode executor
Previews all changes without applying them. Shows what would be created, modified, or deleted.
Implementations§
Source§impl DryRunModeExecutor
impl DryRunModeExecutor
Sourcepub fn new(config: ModeConfig) -> Self
pub fn new(config: ModeConfig) -> Self
Create a new dry-run mode executor
Sourcepub fn preview_step(&mut self, step: &ExecutionStep) -> ExecutionResult<()>
pub fn preview_step(&mut self, step: &ExecutionStep) -> ExecutionResult<()>
Preview a step without executing it
Sourcepub fn preview_changes(&self) -> &[PreviewChange]
pub fn preview_changes(&self) -> &[PreviewChange]
Get all preview changes
Sourcepub fn get_summary(&self) -> DryRunSummary
pub fn get_summary(&self) -> DryRunSummary
Get summary of changes
Sourcepub fn execute(&mut self, plan: &ExecutionPlan) -> ExecutionResult<()>
pub fn execute(&mut self, plan: &ExecutionPlan) -> ExecutionResult<()>
Execute plan in dry-run mode
Previews all changes without applying them.
Auto Trait Implementations§
impl Freeze for DryRunModeExecutor
impl RefUnwindSafe for DryRunModeExecutor
impl Send for DryRunModeExecutor
impl Sync for DryRunModeExecutor
impl Unpin for DryRunModeExecutor
impl UnwindSafe for DryRunModeExecutor
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