pub fn decode(
kind: &Kind,
text: &str,
) -> Result<BTreeMap<String, Value>, String>Expand description
Decode one record’s RON text against its kind. Unknown fields are skipped (the validator judges correctness; this is a reader). A field that fails its declared shape is an error — the caller records the file as unreadable.