pub struct CreateOptions {
pub task_id: String,
pub base_branch: Option<String>,
pub force: bool,
pub custom_path: Option<PathBuf>,
}Expand description
Options for creating a new worktree
Fields§
§task_id: StringTask identifier to generate branch name
base_branch: Option<String>Base branch to create worktree from (default: current branch)
force: boolForce creation even if branch exists
custom_path: Option<PathBuf>Custom worktree path (overrides default path calculation)
Trait Implementations§
Source§impl Clone for CreateOptions
impl Clone for CreateOptions
Source§fn clone(&self) -> CreateOptions
fn clone(&self) -> CreateOptions
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 CreateOptions
impl Debug for CreateOptions
Auto Trait Implementations§
impl Freeze for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnsafeUnpin for CreateOptions
impl UnwindSafe for CreateOptions
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