fn write_entity_hash<T: Serialize>( pipe: &mut Pipeline, generation: &str, name: &str, entries: &BTreeMap<String, T>, ) -> Result<()>