pub struct DebugConfig {
pub dry_run: bool,
pub verbose: bool,
pub command_log: Arc<Mutex<Vec<String>>>,
pub dry_run_prefix: String,
}
Expand description
Configuration for dry-run mode and debugging
Fields§
§dry_run: bool
Enable dry-run mode (commands are not executed)
verbose: bool
Enable verbose output
command_log: Arc<Mutex<Vec<String>>>
Log all commands to this vector
dry_run_prefix: String
Custom prefix for dry-run output
Implementations§
Source§impl DebugConfig
impl DebugConfig
Sourcepub fn dry_run_prefix(self, prefix: impl Into<String>) -> Self
pub fn dry_run_prefix(self, prefix: impl Into<String>) -> Self
Set custom dry-run prefix
Sourcepub fn log_command(&self, command: &str)
pub fn log_command(&self, command: &str)
Log a command
Sourcepub fn get_command_log(&self) -> Vec<String>
pub fn get_command_log(&self) -> Vec<String>
Get logged commands
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§fn clone(&self) -> DebugConfig
fn clone(&self) -> DebugConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DebugConfig
impl Debug for DebugConfig
Auto Trait Implementations§
impl Freeze for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfig
impl Sync for DebugConfig
impl Unpin for DebugConfig
impl UnwindSafe for DebugConfig
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