(
config: &prost_types::Struct,
)
| 8 | /// Convert a protobuf Struct into a JSON object for typed serde decoding. |
| 9 | #[must_use] |
| 10 | pub fn struct_to_json_object( |
| 11 | config: &prost_types::Struct, |
| 12 | ) -> serde_json::Map<String, serde_json::Value> { |
| 13 | config |
| 14 | .fields |
| 15 | .iter() |
| 16 | .map(|(key, value)| (key.clone(), value_to_json(value))) |
| 17 | .collect() |
| 18 | } |
| 19 | |
| 20 | /// Convert a protobuf Struct into a JSON value for typed serde decoding. |
| 21 | #[must_use] |
no test coverage detected