pub struct RemoveOptions {
pub target: String,
pub force: bool,
pub delete_branch: bool,
}Expand description
Options for removing a worktree
Fields§
§target: StringBranch name or worktree path to remove
force: boolForce removal even with uncommitted changes
delete_branch: boolAlso delete the branch after removing worktree
Trait Implementations§
Source§impl Clone for RemoveOptions
impl Clone for RemoveOptions
Source§fn clone(&self) -> RemoveOptions
fn clone(&self) -> RemoveOptions
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 RemoveOptions
impl Debug for RemoveOptions
Auto Trait Implementations§
impl Freeze for RemoveOptions
impl RefUnwindSafe for RemoveOptions
impl Send for RemoveOptions
impl Sync for RemoveOptions
impl Unpin for RemoveOptions
impl UnsafeUnpin for RemoveOptions
impl UnwindSafe for RemoveOptions
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