Enums
We define a set of types, associated with simple integers, to annotate values stored
in LMDB. This is to avoid an accidental ‘cast’ from a value of one type to another.
For this reason we don’t simply use deserialize
from the bincode
crate.