(&self, py: Python<'py>)
| 190 | /// Get metadata as a dictionary |
| 191 | #[getter] |
| 192 | fn metadata<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyDict>> { |
| 193 | let dict = PyDict::new(py); |
| 194 | for (key, value) in &self.inner.metadata { |
| 195 | let py_value = serde_json_to_py_object(py, value)?; |
| 196 | dict.set_item(key, py_value)?; |
| 197 | } |
| 198 | Ok(dict) |
| 199 | } |
| 200 | |
| 201 | /// Get content length |
| 202 | fn content_length(&self) -> usize { |
nothing calls this directly
no test coverage detected