#[non_exhaustive]pub struct RuntimeWorktree {
pub worktree_root: String,
pub base_commit: String,
pub head_commit: String,
pub ownership: RuntimeWorktreeOwnership,
pub cleanup_policy: RuntimeWorktreeCleanupPolicy,
pub cleanup_state: RuntimeWorktreeCleanupState,
pub parent_dirty_excluded: bool,
}Expand description
The runtime-owned git worktree a child session runs in, mirrored from the
subagent.worktree.* records on its parent’s log. The three enums are open:
clients treat an unknown value as unknown.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.worktree_root: StringThe recorded worktree root, verbatim (recorded history; serving it never probes the path).
base_commit: StringThe commit the worktree was created from.
head_commit: StringThe head commit the active lease recorded.
ownership: RuntimeWorktreeOwnershipWho owns the worktree.
cleanup_policy: RuntimeWorktreeCleanupPolicyHow the worktree is cleaned up.
cleanup_state: RuntimeWorktreeCleanupStateWhere the worktree’s cleanup stands.
parent_dirty_excluded: boolTrue exactly when the parent’s uncommitted changes were recorded as excluded from the checkout.
Trait Implementations§
Source§impl Clone for RuntimeWorktree
impl Clone for RuntimeWorktree
Source§impl Debug for RuntimeWorktree
impl Debug for RuntimeWorktree
Source§impl<'de> Deserialize<'de> for RuntimeWorktree
impl<'de> Deserialize<'de> for RuntimeWorktree
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeWorktree
Source§impl PartialEq for RuntimeWorktree
impl PartialEq for RuntimeWorktree
Source§impl Serialize for RuntimeWorktree
impl Serialize for RuntimeWorktree
impl StructuralPartialEq for RuntimeWorktree
Auto Trait Implementations§
impl Freeze for RuntimeWorktree
impl RefUnwindSafe for RuntimeWorktree
impl Send for RuntimeWorktree
impl Sync for RuntimeWorktree
impl Unpin for RuntimeWorktree
impl UnsafeUnpin for RuntimeWorktree
impl UnwindSafe for RuntimeWorktree
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