pub struct Worktree {
pub path: String,
pub branch: Option<String>,
pub is_main: bool,
}Expand description
A git worktree.
Fields§
§path: StringWorktree path.
branch: Option<String>Branch name.
is_main: boolWhether this is the main worktree.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Worktree
impl<'de> Deserialize<'de> for Worktree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Worktree
impl RefUnwindSafe for Worktree
impl Send for Worktree
impl Sync for Worktree
impl Unpin 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