pub struct Worktree {
pub repo_name: String,
pub repo_path: PathBuf,
pub worktree_path: PathBuf,
pub branch: Option<String>,
pub last_commit: Option<DateTime<Utc>>,
pub merged: bool,
pub dirty: bool,
pub prunable: bool,
pub is_main: bool,
}Expand description
A repository worktree.
Fields§
§repo_name: String§repo_path: PathBuf§worktree_path: PathBuf§branch: Option<String>§last_commit: Option<DateTime<Utc>>§merged: bool§dirty: bool§prunable: bool§is_main: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Worktree
impl RefUnwindSafe for Worktree
impl Send for Worktree
impl Sync for Worktree
impl Unpin for Worktree
impl UnsafeUnpin for Worktree
impl UnwindSafe for Worktree
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