In this recipe, you will learn about using the enum type in Rust. In Rust, the enum type lets the developer represent data in multiple formats, and each format can optionally have specific data associated with it. Using enum keywords, we perform iterative operations in Rust.