pub struct WorktreeConfig {
pub max_age: Duration,
pub auto_cleanup: bool,
pub prefix: String,
pub max_worktrees: usize,
}Expand description
Configuration for worktree management
Fields§
§max_age: DurationMaximum age before a worktree is considered stale
auto_cleanup: boolWhether to auto-cleanup stale worktrees
prefix: StringPrefix for worktree directory names
max_worktrees: usizeMaximum number of worktrees allowed
Trait Implementations§
Source§impl Clone for WorktreeConfig
impl Clone for WorktreeConfig
Source§fn clone(&self) -> WorktreeConfig
fn clone(&self) -> WorktreeConfig
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 WorktreeConfig
impl Debug for WorktreeConfig
Auto Trait Implementations§
impl Freeze for WorktreeConfig
impl RefUnwindSafe for WorktreeConfig
impl Send for WorktreeConfig
impl Sync for WorktreeConfig
impl Unpin for WorktreeConfig
impl UnsafeUnpin for WorktreeConfig
impl UnwindSafe for WorktreeConfig
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