Struct rocfl::cmd::opts::InitCmd[][src]

pub struct InitCmd {
    pub config_file: Option<PathBuf>,
    pub layout: Layout,
}
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

Append to App so it can instantiate Self. Read more

Append to App so it can update self. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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