Use LeveldbOrm
+ leveldb_key
to auto impl trait in leveldb-orm
```rust
struct Command {
pub executable: u8,
pub args: Vec
rust
impl<'a> leveldb_orm::KeyOrm<'a> for Command {
type KeyType = (u8, Vec<String>);
type KeyTypeRef = (&'a u8, &'a Vec<String>);
#[inline]
fn key(
&self,
) -> std::result::Result<leveldb_orm::EncodedKey<Self>, Box<dyn std::error::Error>> {
Self::encode_key((&self.executable, &self.args))
}
}