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
Performs the conversion.
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
Assign values from ArgMatches
to self
.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ValidateCmd
impl Send for ValidateCmd
impl Sync for ValidateCmd
impl Unpin for ValidateCmd
impl UnwindSafe for ValidateCmd
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