Trait forest_encoding::Cbor [−][src]
pub trait Cbor: Serialize + DeserializeOwned {
fn marshal_cbor(&self) -> Result<Vec<u8>, Error> { ... }
fn unmarshal_cbor(bz: &[u8]) -> Result<Self, Error> { ... }
fn cid(&self) -> Result<Cid, Error> { ... }
}
Expand description
Cbor utility functions for serializable objects
Provided methods
Marshalls cbor encodable object into cbor bytes