1use serde::{Deserialize, Serialize};
2use strum::IntoEnumIterator;
3use strum_macros::{Display, EnumIter};
4
5#[derive(Serialize, Deserialize, Debug, Clone, Copy, Display, EnumIter)]
6pub enum Category {
7 Aerospace,
8 Business,
9 ComputerScience,
10 Economics,
11 Education,
12 Engineering,
13 Geography,
14 HealthMedicine,
15 History,
16 LanguageArts,
17 LiberalArts,
18 Mathematics,
19 Politics,
20 Psychology,
21 Science,
22}
23
24impl Category {
25 pub fn to_vec() -> Vec<Category> {
26 Category::iter().collect()
27 }
28}