fn validate_fields<'a, I>( items: &BTreeMap<String, Item>, fields: I) -> Result<()> where I: IntoIterator<Item = &'a Field>,