pub struct WorkspaceSummary {
pub generated_at: String,
pub name: String,
pub members: Vec<VaultSummary>,
pub pins: Vec<MemberPin>,
pub cross_links: Vec<CrossLink>,
pub cross_links_total: usize,
pub cross_links_authored: usize,
}Expand description
Aggregate figures for a workspace vault’s _Home overview: the members,
each with exactly the aggregates a single-project _Home carries, plus the
cross-repo links between them.
Fields§
§generated_at: StringWhen this vault was rendered, RFC 3339 UTC.
A vault is read-only and point-in-time. Stamping it is what gives that property teeth: with the per-member commits, a reader can tell whether what they are looking at still describes the workspace, rather than assuming it does.
name: StringThe workspace name (--workspace-name).
members: Vec<VaultSummary>One entry per member repository, in stable name order. Each is the very
same VaultSummary a per-project vault would render.
pins: Vec<MemberPin>Version pins: for each member that depends on another, the hub revision it deploys (ADR-0009 step 8). One entry per dependency, not per member — a project with two parents pins each of them separately, and a member with no parents contributes nothing.
Ordered by the caller, which holds the dependency graph; the renderer only lays them out.
cross_links: Vec<CrossLink>Cross-repo links between members, already ordered and capped by the caller.
cross_links_total: usizeCross-repo links found in total, which cross_links may be a capped view
of — so the section can say what it is not showing.
How many of cross_links_total were declared ([[links]]) rather
than inferred.
Counted before the cap, not from cross_links: that vector is truncated
to WORKSPACE_CROSS_LINK_ROWS rows,
so counting it would describe the rows on screen while reading as a
statement about the workspace — a caption that quietly changes meaning
once a workspace grows past the cap.
Trait Implementations§
Source§impl Clone for WorkspaceSummary
impl Clone for WorkspaceSummary
Source§fn clone(&self) -> WorkspaceSummary
fn clone(&self) -> WorkspaceSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more