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
Provided Methods
sourcefn collection() -> &'static str
fn collection() -> &'static str
The collection the StoreId
should be created for
sourcefn postprocess_storeid(sid: StoreId) -> Result<StoreId>
fn postprocess_storeid(sid: StoreId) -> Result<StoreId>
Postprocess the generated StoreId
object