pub type Node = SurfaceNode;Expand description
Compatibility name for a browsing surface.
Aliased Type§
pub struct Node {
pub container: Container<Uuid, Address>,
pub images: BTreeMap<ImageRole, ImageRef>,
}Fields§
§container: Container<Uuid, Address>The one node substrate. Identity, primary-first addresses, authored content, media type, title, tags, and nested-graph bearing live here.
Deref keeps the Container capability surface direct.
images: BTreeMap<ImageRole, ImageRef>Content-addressed preview imagery, keyed by role. The node carries
~40-byte ImageRef handles; the pixels live in the durable blob
store under content/image/<hex> (see
pandect::image_store).
This is the node-image externalization plan’s phase 2. Inline
thumbnail_png / favicon_rgba bytes used to ride here and dominated
the graph: at 50k nodes they were 64% of live heap, and the lane-D gate
measured them at 18x the snapshot size and 3.8x its load time. A
preview is experience, not truth, so it belongs in a bounded,
collectable cache rather than in every node forever.
Read through Node::image / Node::favicon / Node::preview
rather than indexing the map, so call sites name a role.