pacenotes_shared/category.rs
1//! A category is the first segment of `PackageInfo::name`: the folder a package
2//! sits in under its access directory. The set is open; these are the known ones.
3
4pub const CATEGORY_LANGUAGE: &str = "language";
5pub const CATEGORY_CODRIVER: &str = "codriver";
6pub const CATEGORY_STYLE: &str = "style";
7pub const CATEGORY_PACENOTES: &str = "pacenotes";
8
9/// Lets the server spot a category name filed where an access directory belongs.
10pub const KNOWN_CATEGORIES: [&str; 4] = [
11 CATEGORY_LANGUAGE,
12 CATEGORY_CODRIVER,
13 CATEGORY_STYLE,
14 CATEGORY_PACENOTES,
15];
16
17/// The categories the Configuration scene asks for exactly one pick from, in display order.
18pub const CHOICE_CATEGORIES: [&str; 3] = [CATEGORY_LANGUAGE, CATEGORY_CODRIVER, CATEGORY_STYLE];