pub struct AgentWorktree {
pub path: PathBuf,
pub repo_root: PathBuf,
pub branch: String,
}Expand description
A completed isolation: "worktree" subagent’s managed worktree, as
the Agent tool reports it on completion. Produced only by
completed_agent_worktree, which vouches for every field.
Fields§
§path: PathBufThe worktree directory, <repo>/.claude/worktrees/agent-<hex>.
repo_root: PathBufThe repo the worktree was cut from; where branch reaping runs.
branch: StringThe CLI’s conventional branch (worktree-<slug>), from the tool
response or derived from the directory name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentWorktree
impl RefUnwindSafe for AgentWorktree
impl Send for AgentWorktree
impl Sync for AgentWorktree
impl Unpin for AgentWorktree
impl UnsafeUnpin for AgentWorktree
impl UnwindSafe for AgentWorktree
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