[][src]Trait libimagentryref::refstore::UniqueRefPathGenerator

pub trait UniqueRefPathGenerator {
    fn unique_hash<A: AsRef<Path>>(path: A) -> Result<String>;

    fn collection() -> &'static str { ... }
fn postprocess_storeid(sid: StoreId) -> Result<StoreId> { ... } }

A UniqueRefPathGenerator generates unique Pathes

It is basically a functor which generates a StoreId from a &Path. For more information have a look at the documentation of RefStore.

Required methods

fn unique_hash<A: AsRef<Path>>(path: A) -> Result<String>

A function which should generate a unique string for a Path

Loading content...

Provided methods

fn collection() -> &'static str

The collection the StoreId should be created for

fn postprocess_storeid(sid: StoreId) -> Result<StoreId>

Postprocess the generated StoreId object

Loading content...

Implementors

Loading content...