Docstring for type_state_key_tuple

This commit is contained in:
Erik Johnston
2026-05-21 13:46:10 +01:00
parent d7a8dc5e27
commit d4801f78a7
+2
View File
@@ -179,6 +179,8 @@ pub struct EventCommonFields {
}
impl EventCommonFields {
/// Helper method to check if the event is a state event and return the
/// tuple of `(type, state_key)` if so.
fn type_state_key_tuple(&self) -> Option<(&str, &str)> {
if let Some(state_key) = &self.state_key {
Some((&self.type_, state_key))