pub struct StrictTarget {
pub name: String,
pub branch: Option<String>,
pub path: PathBuf,
}Expand description
Strictly-resolved worktree target: name, branch, and path.
Produced by resolve_target_strict.
Fields§
§name: StringBasename of the worktree directory (e.g. "repo-feat-x").
branch: Option<String>Short branch name (e.g. "feat-x"), with refs/heads/ prefix stripped.
None for detached-HEAD worktrees.
path: PathBufAbsolute path to the worktree directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrictTarget
impl RefUnwindSafe for StrictTarget
impl Send for StrictTarget
impl Sync for StrictTarget
impl Unpin for StrictTarget
impl UnsafeUnpin for StrictTarget
impl UnwindSafe for StrictTarget
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more