Trait sewup::rdb::traits::Record[][src]

pub trait Record: Sized + Serialize + DeserializeOwned {
    fn from_row(r: &Row) -> Option<Self> { ... }
fn to_row(&self, row_length: u32) -> Result<Row> { ... } }
Expand description

helps to serialize struct to row or deserialized from row

| 1st bytes | ...    | padding                   |
|-----------|--------|---------------------------|
| Header    | Binary | padding to n times Byte32 |

Header is the number of bytes for binary, Record can be delete by simple mark the header zero

Provided methods

Implementors