[][src]Trait etebase::utils::MsgPackSerilization

pub trait MsgPackSerilization {
    type Output;
    fn to_msgpack(&self) -> Result<Vec<u8>>;
fn from_msgpack(data: &[u8]) -> Result<Self::Output>; }

A trait for serializing and deserializing to MsgPack

Associated Types

type Output

The type of the struct implementing this trait

Loading content...

Required methods

fn to_msgpack(&self) -> Result<Vec<u8>>

Convert self to a msgpack encoded buffer

fn from_msgpack(data: &[u8]) -> Result<Self::Output>

Create the struct from a MsgPack encoded buffer

Arguments:

  • data - the MsgPack buffer
Loading content...

Implementors

impl MsgPackSerilization for ItemMetadata[src]

Loading content...