Struct rocfl::cmd::opts::InitCmd [−][src]
Expand description
Create a new OCFL repository
The repository is created in the current directory unless the global option ‘-r PATH’ was specified.
A new repository may only be created in an empty directory. By default, new repositories are configured to use the storage layout extension 0004-hashed-n-tuple-storage-layout. You should change this up front if you do not want to use this extension as it is difficult to change a repository’s layout after objects have been created.
Fields
config_file: Option<PathBuf>
Path to a custom storage layout extension config JSON file.
layout: Layout
OCFL storage layout extension to use
The default extension configuration for the extension is used. Custom configuration may be specified using ‘–config-file’.
Trait Implementations
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
Assign values from ArgMatches
to self
.
Auto Trait Implementations
impl RefUnwindSafe for InitCmd
impl UnwindSafe for InitCmd
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more