pub trait MetadataRoundtrip {
    // Required methods
    fn encode(&self) -> Result<Vec<u8>, MetadataError>;
    fn decode(md: &[u8]) -> Result<Self, MetadataError>
       where Self: Sized;
}
Expand description

Trait marking a type as table metadata

Required Methods§

source

fn encode(&self) -> Result<Vec<u8>, MetadataError>

Encode self as bytes

source

fn decode(md: &[u8]) -> Result<Self, MetadataError>where Self: Sized,

Decond Self from bytes

Implementors§