Trait sov_rollup_interface::db::KeyEncoder
source · pub trait KeyEncoder<S: Schema + ?Sized>: Sized + PartialEq + Debug {
// Required method
fn encode_key(&self) -> Result<Vec<u8>>;
}
Required Methods§
sourcefn encode_key(&self) -> Result<Vec<u8>>
fn encode_key(&self) -> Result<Vec<u8>>
Converts self
to bytes to be stored in DB.