1 2 3 4 5 6 7 8 9
use enum_helper::EnumStr; #[derive(EnumStr)] #[enum_str(error_msg = "invalid msg {")] enum Foo { Bar, } fn main() {}