Trait rocfl::ocfl::ValidationResult[][src]

pub trait ValidationResult {
    fn has_errors(&self) -> bool;
fn has_warnings(&self) -> bool;
fn errors(&self) -> &[ValidationError];
fn warnings(&self) -> &[ValidationWarning];
fn error(
        &mut self,
        location: ProblemLocation,
        code: ErrorCode,
        message: String
    );
fn warn(
        &mut self,
        location: ProblemLocation,
        code: WarnCode,
        message: String
    ); fn has_errors_or_warnings(&self) -> bool { ... } }

Required methods

true if errors were identified

true if warnings were identified

The list of identified errors

The list of identified warnings

Adds a new error

Adds a new warning

Provided methods

true if errors or warnings were identified

Implementors