pub trait DatabaseValue: Sized + Debug {
// Required methods
fn from_bytes(
data: &[u8],
modules: &ModuleDecoderRegistry,
) -> Result<Self, DecodingError>;
fn to_bytes(&self) -> Vec<u8> ⓘ;
}
Expand description
DatabaseValue
that represents the value structure of database records.
Required Methods§
fn from_bytes( data: &[u8], modules: &ModuleDecoderRegistry, ) -> Result<Self, DecodingError>
fn to_bytes(&self) -> Vec<u8> ⓘ
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.