pub struct WorktreeAssignment {
pub branch: String,
pub cli: String,
pub spec_content: Option<String>,
pub owned_files: Option<Vec<String>>,
pub skill_content: Option<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.
skill_content: Option<String>Optional rendered skill content to inject into the assignment section.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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