Trait fvm_ipld_encoding::CborStore
source · pub trait CborStore: Blockstore + Sized {
// Provided methods
fn get_cbor<T>(&self, cid: &Cid) -> Result<Option<T>>
where T: DeserializeOwned { ... }
fn put_cbor<S>(&self, obj: &S, code: Code) -> Result<Cid>
where S: Serialize { ... }
}
Expand description
Wrapper for database to handle inserting and retrieving ipld data with Cids
Provided Methods§
Object Safety§
This trait is not object safe.