pub struct WorktreeInfo {
pub name: Option<String>,
pub path: PathBuf,
pub head: Option<String>,
pub locked: bool,
pub prunable: bool,
}Expand description
Information about a worktree.
Fields§
§name: Option<String>Name of the worktree (None for main worktree).
path: PathBufPath to the worktree directory.
head: Option<String>Current HEAD reference (branch name or commit).
locked: boolWhether the worktree is locked.
prunable: boolWhether the worktree can be pruned.
Trait Implementations§
Source§impl Clone for WorktreeInfo
impl Clone for WorktreeInfo
Source§fn clone(&self) -> WorktreeInfo
fn clone(&self) -> WorktreeInfo
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 moreAuto Trait Implementations§
impl Freeze for WorktreeInfo
impl RefUnwindSafe for WorktreeInfo
impl Send for WorktreeInfo
impl Sync for WorktreeInfo
impl Unpin for WorktreeInfo
impl UnsafeUnpin for WorktreeInfo
impl UnwindSafe for WorktreeInfo
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