Skip to main content

payload_of

Function payload_of 

Source
pub fn payload_of(frontmatter: &Mapping) -> Option<&str>
Expand description

The payload a sidecar’s metadata names — its content, when the document is an attachment (an explicit attachment: true, or a content prov reads as an opaque payload rather than prose) — or None for a page.

The same two spellings prov::Document::is_attachment accepts, read off the collected frontmatter rather than a parsed document because the renderer only ever holds the former.