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

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

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

A function which should generate a unique string for a Path

Provided Methods

The collection the StoreId should be created for

Postprocess the generated StoreId object

Implementors