ChatGPT - Rust enum vs JS object literal