diff --git a/rust/src/events/formats/mod.rs b/rust/src/events/formats/mod.rs index 537a053da9..29f32ae55e 100644 --- a/rust/src/events/formats/mod.rs +++ b/rust/src/events/formats/mod.rs @@ -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))