[−][src]Trait libimagentryref::refstore::UniqueRefPathGenerator
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
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