pub struct WorktreeInfo {
pub path: PathBuf,
pub head: String,
pub is_main: bool,
pub locked: bool,
pub session_id: Option<String>,
}Expand description
Information about a managed worktree.
Fields§
§path: PathBufAbsolute path to the worktree directory.
head: StringHEAD commit hash.
is_main: boolWhether this is the main worktree (not linked).
locked: boolWhether the worktree is locked.
session_id: Option<String>Session ID if this worktree is managed by Brat.
Trait Implementations§
Source§impl Clone for WorktreeInfo
impl Clone for WorktreeInfo
Source§impl Debug for WorktreeInfo
impl Debug for WorktreeInfo
Source§impl From<WorktreeEntry> for WorktreeInfo
impl From<WorktreeEntry> for WorktreeInfo
Source§fn from(entry: WorktreeEntry) -> Self
fn from(entry: WorktreeEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for WorktreeInfo
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