Skip to main content

require_whole_file

Function require_whole_file 

Source
pub fn require_whole_file(path: &Path, carrier: MetaCarrier) -> Result<Format>
Expand description

Enforce that a record store at path (the id registry, the recycle-bin index, a flat vocabulary) is a whole-file config document, returning its format. A MetaCarrier::Fenced carrier — markdown frontmatter — is rejected with Error::MarkdownStore: prov re-lays-out these stores as a sorted record list (DESIGN §5), so human prose has no stable home in them and unambiguous extension→format sniffing depends on the carrier being whole-file. The single choke point every store loader passes through, so the rule cannot be enforced in one place and forgotten in another.