Union fix for event struct
UI event parsing in Rust