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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.