Is there a way to do the below by iterating over enum in Rust.
enum ProductCategory{
Dairy,
Daycare,
BabyCare
}
fn main() {
let product_categories = vec![ProductCategory::Dairy, ProductCategory::Daycare, ProductCategory::BabyCare];
}
This to send over an api what all the possible value a user can select for a particular field. (serde serialize will be added
)