pub struct Harness {Show 14 fields
pub id: HarnessId,
pub workspace: WorkspaceId,
pub name: String,
pub kind: HarnessKind,
pub cwd: String,
pub status: HarnessStatus,
pub subagents: Vec<Subagent>,
pub unread: u16,
pub tag: String,
pub title: String,
pub pronouns: String,
pub color: Option<usize>,
pub announced: bool,
pub started: bool,
}Fields§
§id: HarnessId§workspace: WorkspaceId§name: String§kind: HarnessKind§cwd: StringWorking directory, relative to the workspace root when possible.
status: HarnessStatus§subagents: Vec<Subagent>§unread: u16§tag: StringShort role the agent sets for itself (“frontend”, “debugger”).
title: StringOne-line description of what the agent is doing, set by the agent.
pronouns: StringPronouns the agent chose for itself (“she/her”, “they/them”).
color: Option<usize>Index into the theme accents; unset until assign_agent_colors runs.
announced: boolWhether its arrival is already in the activity feed. Agents start false and announce themselves when they pick a name; shells log at once. Older state files default to true so nothing is logged twice.
started: boolWhether its first working turn is already in the activity feed.
Implementations§
Source§impl Harness
impl Harness
pub fn working_subagents(&self) -> usize
pub fn has_live_subagents(&self) -> bool
pub fn subagent_count(&self) -> usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Harness
impl<'de> Deserialize<'de> for Harness
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
Auto Trait Implementations§
impl Forget for Harness
impl Freeze for Harness
impl Move for Harness
impl RefUnwindSafe for Harness
impl Send for Harness
impl Sync for Harness
impl Unpin for Harness
impl UnsafeUnpin for Harness
impl UnwindSafe for Harness
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