Trait struct_db::SDBItem

source ·
pub trait SDBItem: Sized {
    // Required methods
    fn struct_db_schema() -> Schema;
    fn struct_db_primary_key(&self) -> Vec<u8>;
    fn struct_db_keys(&self) -> HashMap<&'static str, Vec<u8>>;
    fn struct_db_bincode_encode_to_vec(&self) -> Vec<u8>;
    fn struct_db_bincode_decode_from_slice(slice: &[u8]) -> Self;
}

Required Methods§

Implementors§