Question: what are enums in rust?
Answer: Enums. The enum keyword allows the creation of a type which may be one of a few different variants. Any variant which is valid as a struct is also valid as an enum . // Create an `enum` to classify a web event.