pub struct LsTree {
pub workspace: String,
pub tree: Vec<LsNode>,
}Expand description
Top-level envelope shared by CLI --json and MCP ls.
Field shape pinned by man/reference/cli-json.md §“ls”: {workspace, tree[]}. The tree array always has length 1 for a successful
build (the root pack); kept as an array so future surfaces that walk
from a workspace dir with multiple sibling packs can extend without
a schema break.
Fields§
§workspace: StringAbsolute path to the resolved workspace (the dir containing the
root pack’s .grex/, or the pack root itself for the
flat-sibling layout).
tree: Vec<LsNode>Root nodes. Currently always a single entry — the root pack.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LsTree
impl RefUnwindSafe for LsTree
impl Send for LsTree
impl Sync for LsTree
impl Unpin for LsTree
impl UnsafeUnpin for LsTree
impl UnwindSafe for LsTree
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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