pub struct TreeRow {
pub depth: u8,
pub node_id: TreeNodeId,
pub kind: TreeRowKind,
pub is_expanded: bool,
pub agent_count: usize,
pub needs_attention: bool,
pub has_children: bool,
}Expand description
A single row in the flattened, navigable tree view.
Created by flatten_tree from a Vec<TreeNode> + expand/collapse state.
Fields§
§depth: u8Nesting depth (0 = top-level project, 1 = worktree/agent, etc.).
node_id: TreeNodeIdUnique node identifier for expand/collapse state tracking.
kind: TreeRowKindWhat kind of row this is.
is_expanded: boolWhether this node is currently expanded (only meaningful for non-leaf nodes).
agent_count: usizeTotal agent count in this subtree (for collapsed groups).
needs_attention: boolWhether any agent in the subtree needs attention (bubble-up).
has_children: boolWhether this node has children (is expandable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeRow
impl RefUnwindSafe for TreeRow
impl Send for TreeRow
impl Sync for TreeRow
impl Unpin for TreeRow
impl UnsafeUnpin for TreeRow
impl UnwindSafe for TreeRow
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