Skip to main content

extra_fields

Function extra_fields 

Source
pub fn extra_fields<'a>(map: &'a Expr, known: &[&str]) -> Vec<&'a str>
Expand description

List the field names present in map that are not in known. Keys that are neither bare symbols nor strings are ignored. Use this for open-record validation (reject or warn on unexpected fields).