pub struct RmOptions {
pub recursive: bool,
pub force: bool,
}Expand description
Named options for BashRunner::rm.
Stable-Rust emulation of named/optional arguments: call sites use named
fields (RmOptions { recursive: true, ..Default::default() }) instead
of positional rm(path, true, false), avoiding recursive/force swaps.
Fields§
§recursive: boolPass -r / Recurse (directories).
force: boolPass -f / Force (suppress missing-file errors).
Trait Implementations§
impl Copy for RmOptions
impl Eq for RmOptions
impl StructuralPartialEq for RmOptions
Auto Trait Implementations§
impl Freeze for RmOptions
impl RefUnwindSafe for RmOptions
impl Send for RmOptions
impl Sync for RmOptions
impl Unpin for RmOptions
impl UnsafeUnpin for RmOptions
impl UnwindSafe for RmOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.