(&self, py: Python<'py>)
| 114 | /// Get extraction settings as a dictionary |
| 115 | #[getter] |
| 116 | fn extraction_settings<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyDict>> { |
| 117 | let dict = PyDict::new(py); |
| 118 | for (key, value) in &self.inner.extraction_settings { |
| 119 | let py_value = serde_json_to_py_object(py, value)?; |
| 120 | dict.set_item(key, py_value)?; |
| 121 | } |
| 122 | Ok(dict) |
| 123 | } |
| 124 | |
| 125 | /// Set extraction settings from a dictionary |
| 126 | #[setter] |
nothing calls this directly
no test coverage detected