pub struct ContentReport {
pub title: Option<String>,
pub outline: Vec<OutlineEntry>,
pub links: Vec<String>,
pub headings: Vec<String>,
pub lineage: Option<ContentLineage>,
}Expand description
A structural report of a session’s addressed content — title, an outline
of role + name, outgoing links, headings. The introspection CONTRACT for
DocumentSession::inspect: pure data, so it lives here rather than in a
render crate (genet-render’s content_report builds one from a LayoutDom
and re-exports these types). Hosts that cannot downcast a session to its
concrete type (the type may be private to its engine crate) read this
instead — turnstone’s Inspector pane is the first such consumer.
Fields§
§title: Option<String>The <title> text, if any.
outline: Vec<OutlineEntry>The element outline (painted elements only; metadata tags are skipped), in document order.
links: Vec<String>Outgoing <a href> targets, in document order.
headings: Vec<String>Heading (<h1>..<h6>) text, in document order.
lineage: Option<ContentLineage>Derivation evidence when this session presents transformed source bytes.