pub struct WorktreeEntry {
pub branch: String,
pub worktree_path: PathBuf,
pub cli: String,
pub branch_created: bool,
pub pending_boot_prompt: Option<String>,
}Expand description
A worktree entry within a session.
Fields§
§branch: StringThe branch checked out in this worktree.
worktree_path: PathBufAbsolute path to the worktree directory.
cli: StringThe AI CLI assigned to this worktree.
branch_created: boolWhether git-paw created this branch (vs. it already existing).
When true, purge will delete the branch after removing the worktree.
pending_boot_prompt: Option<String>Boot+task prompt awaiting submission.
Set only when an agent is attached via git paw add to a paused
session (design D4): the pane is created and the boot block injected,
but the prompt is held unsubmitted so the new agent stays paused with
the rest of the session. git paw resume (restart-from-pause) submits
any entry carrying a pending prompt and clears the field. None for
every start-time agent and for adds to an active session (submitted
immediately). Omitted from JSON when None.
Trait Implementations§
Source§impl Clone for WorktreeEntry
impl Clone for WorktreeEntry
Source§fn clone(&self) -> WorktreeEntry
fn clone(&self) -> WorktreeEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorktreeEntry
impl Debug for WorktreeEntry
Source§impl<'de> Deserialize<'de> for WorktreeEntry
impl<'de> Deserialize<'de> for WorktreeEntry
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>,
impl Eq for WorktreeEntry
Source§impl PartialEq for WorktreeEntry
impl PartialEq for WorktreeEntry
Source§fn eq(&self, other: &WorktreeEntry) -> bool
fn eq(&self, other: &WorktreeEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WorktreeEntry
impl Serialize for WorktreeEntry
impl StructuralPartialEq for WorktreeEntry
Auto Trait Implementations§
impl Freeze for WorktreeEntry
impl RefUnwindSafe for WorktreeEntry
impl Send for WorktreeEntry
impl Sync for WorktreeEntry
impl Unpin for WorktreeEntry
impl UnsafeUnpin for WorktreeEntry
impl UnwindSafe for WorktreeEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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