pub fn event_contains_attr(event: &Event, key: &str, value: &str) -> bool {
    event
        .attributes
        .iter()
        .any(|attr| attr.key == key && attr.value == value)
}
/// Determine if an event contains a specific key-value pair
Determine if an event contains a specific key-value pair
Determine if an event contains a specific key - value pair
pub fn event_contains_attr(event: &Event, key: &str, value: &str) -> bool {
    event
        .attributes
        .iter()
        .any(|attr| attr.key == key && attr.value == value)
}
pub fn event_contains_attr ( event : & Event , key : & str , value : & str ) -> bool { event . attributes . iter ( ) . any ( | attr | attr . key == key && attr . value == value ) }
Determine if an event contains a specific key-value pair
Determine if an event contains a specific key - value pair
event
&Event
key
&str
value
&str
event
&Event
key
&str
value
&str