INNER CODE UNIT · Rust
get_names_and_descriptions
jhspetersson/fselect · src/field/mod.rs:158
pub fn get_names_and_descriptions() -> Vec<(Vec<&'static str>, &'static str)> {
vec![
$(
$(#[$variant_attrs])*
(vec![$($text,)*], $($description)?),
)*
]
}
}
};
}
fields! {
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Hash)]
pub enum Field {
#[text = ["name"]]
@colorized = true
@for_archived = true