(node: &Value, key: &str)
| 142 | } |
| 143 | |
| 144 | fn string_field(node: &Value, key: &str) -> Option<String> { |
| 145 | node.get(key)?.as_str().map(str::to_owned) |
| 146 | } |
| 147 | |
| 148 | fn element_center(node: &Value) -> Option<(f64, f64)> { |
| 149 | let frame = node.get("frame")?; |
no test coverage detected