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

pub struct ValidateCmd {
    pub paths: bool,
    pub no_fixity_check: bool,
    pub level: Level,
    pub suppress_warning: Vec<WarnCode>,
    pub suppress_error: Vec<ErrorCode>,
    pub object_ids: Vec<String>,
}
Expand description

Validate an object or the entire repository

When run on a specific object, the object is validated against the OCFL spec, and any issues are reported. When run against the entire repository, the repository structure is validated, in addition to validating all of the objects in the repository.

Return code 1 is returned if there were problems performing the validation, but no invalid objects were identified. Return code 2 is returned if invalid objects were identified. Return code 0 is returned if all objects were valid, or only warning level issues were identified.

If warnings or errors are suppressed and an object has no remaining issues after suppression, then the object is reported as valid.

Fields

paths: bool

Interpret positional parameters as paths to object roots relative the repository root

no_fixity_check: bool

Disable fixity check on stored files

level: Level

The log level to use when printing validation results. ‘Warn’ suppresses output from valid objects; ‘Error’ suppresses valid objects and warnings.

suppress_warning: Vec<WarnCode>

Do not report the specified warning

suppress_error: Vec<ErrorCode>

Do not report the specified error

object_ids: Vec<String>

IDs of the objects to validate, or paths object roots when used with ‘–paths’

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