Looking for advice on filtering Genesys Cloud notification events within a Rust consumer using Tokio.
I have an EventBridge rule targeting a Lambda function. The raw event payload arrives, but I need to filter specifically for routing:interaction events with type: "webchat" before processing.
My current serde struct parses the root detail object, but I am struggling to implement a match guard or pre-filter to avoid unnecessary deserialization overhead for irrelevant events. Is there a standard pattern for this?