fn encode_summary( table_writer: &mut MultiTableData, name: &str, summary: &Summary, resource_attrs: Option<&Vec<KeyValue>>, scope_attrs: Option<&Vec<KeyValue>>, ) -> Result<()>