Get metadata value by key
(&self, key: &str)
| 119 | |
| 120 | /// Get metadata value by key |
| 121 | pub fn get_metadata(&self, key: &str) -> Option<String> { |
| 122 | self.metadata.get(key).map(|v| v.to_string()) |
| 123 | } |
| 124 | |
| 125 | /// Convert to JSON string representation |
| 126 | pub fn to_json(&self) -> PyResult<String> { |