pub trait Decode:
Sized
+ Send
+ Sync
+ Debug {
// Required method
fn decode<B>(value: B) -> Result<Self, DatabaseError>
where B: AsRef<[u8]>;
}
Expand description
Trait that will transform the data to be read from the DB.
Required Methods§
fn decode<B>(value: B) -> Result<Self, DatabaseError>
fn decode<B>(value: B) -> Result<Self, DatabaseError>
Decodes data coming from the database.
Object Safety§
This trait is not object safe.