You are probably looking for the table-enum crate, which wraps this crate and is much more ergonomic to use.