Function store_setup
Source pub async fn store_setup(
config: &Config,
example_redirect: bool,
) -> Result<Store, Error>
Expand description
Set up the links store, optionally setting an example redirect
(example
-> 9dDbKpJP
-> https://example.com/
).
ยงErrors
This function returns an error if construction of the Store
(using
Store::new
) fails or if the example redirect can not be set when
requested.