Based on transitional modeling, bareclad is a new type of database that provides features from relational, graph, columnar, and name-value pair databases.
The issues you were having with replacing &'static str with String are because of https://github.com/billyrieger/bimap-rs/issues/16. By the way the bimap functionality of the bimap isn't actually used at all - are you sure you need a bimap?
I could switch to a HashMap and ensure that a given String stays associated with a single Role using a few extra lines of code. Likely better in the long run to minimize the external dependencies.
Final improvements from the code review.
The issues you were having with replacing
&'static str
withString
are because of https://github.com/billyrieger/bimap-rs/issues/16. By the way the bimap functionality of the bimap isn't actually used at all - are you sure you need a bimap?