pub struct WorktreeAssignment {
pub branch: String,
pub cli: String,
pub spec_content: Option<String>,
pub owned_files: Option<Vec<String>>,
}Expand description
Reads a file (or treats a missing file as empty), injects section,
and writes the result back.
Per-worktree assignment context passed by the session launch flow.
Fields§
§branch: StringThe branch this worktree is checked out on.
cli: StringThe CLI name (e.g. “claude”, “cursor”) running in this worktree.
spec_content: Option<String>Optional spec content to embed in the assignment section.
owned_files: Option<Vec<String>>Optional list of files this worktree owns.
Auto Trait Implementations§
impl Freeze for WorktreeAssignment
impl RefUnwindSafe for WorktreeAssignment
impl Send for WorktreeAssignment
impl Sync for WorktreeAssignment
impl Unpin for WorktreeAssignment
impl UnsafeUnpin for WorktreeAssignment
impl UnwindSafe for WorktreeAssignment
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