Skip to main content

StorageContentMapping

Trait StorageContentMapping 

Source
pub trait StorageContentMapping {
    // Required methods
    fn to_plain(&self, mapped: &Cid) -> Option<Cid>;
    fn to_mapped(&self, plain: &Cid) -> Option<Cid>;
}

Required Methods§

Source

fn to_plain(&self, mapped: &Cid) -> Option<Cid>

Convert the mapped Cid to an plain storage Cid.

Source

fn to_mapped(&self, plain: &Cid) -> Option<Cid>

Convert the plain storage Cid to a mapped Cid.

Implementors§