use boolenum::BoolEnum; #[derive(BoolEnum)] pub enum FieldNames { Foo, Bar, } fn main() {}