diff --git a/rust/src/events/mod.rs b/rust/src/events/mod.rs index d065f07228..c5c9db2b21 100644 --- a/rust/src/events/mod.rs +++ b/rust/src/events/mod.rs @@ -393,6 +393,21 @@ impl Event { }) } + fn get_dict<'py>(&self, py: Python<'py>) -> PyResult> { + match &self.inner { + EventFormatEnum::V3(format) => Ok(pythonize(py, format)?), + // ... + } + } + + fn get_pdu_json<'py>(&self, py: Python<'py>) -> PyResult> { + // We need to do a bunch of changes here. + match &self.inner { + EventFormatEnum::V3(format) => Ok(pythonize(py, format)?), + // ... + } + } + #[getter] fn room_id(&self) -> Option<&str> { match &self.inner { @@ -409,13 +424,6 @@ impl Event { } } - fn get_pdu_json<'py>(&self, py: Python<'py>) -> PyResult> { - match &self.inner { - EventFormatEnum::V3(format) => Ok(pythonize(py, format)?), - // ... - } - } - #[getter] fn content(&self) -> PyResult { match &self.inner {