Struct rocfl::ocfl::StorageValidationResult
source · [−]pub struct StorageValidationResult { /* private fields */ }
Expand description
The results of validating the structure of an OCFL repository
Implementations
Trait Implementations
sourceimpl Debug for StorageValidationResult
impl Debug for StorageValidationResult
sourceimpl Default for StorageValidationResult
impl Default for StorageValidationResult
sourceimpl ValidationResult for StorageValidationResult
impl ValidationResult for StorageValidationResult
sourcefn has_errors(&self) -> bool
fn has_errors(&self) -> bool
True if any errors were identified
sourcefn has_warnings(&self) -> bool
fn has_warnings(&self) -> bool
True if any warnings were identified
sourcefn errors(&self) -> &[ValidationError]
fn errors(&self) -> &[ValidationError]
The list of identified errors
sourcefn warnings(&self) -> &[ValidationWarning]
fn warnings(&self) -> &[ValidationWarning]
The list of identified warnings
sourcefn errors_mut(&mut self) -> &mut Vec<ValidationError>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn errors_mut(&mut self) -> &mut Vec<ValidationError>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The list of identified errors
sourcefn warnings_mut(&mut self) -> &mut Vec<ValidationWarning>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn warnings_mut(&mut self) -> &mut Vec<ValidationWarning>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The list of identified warnings
sourcefn error(&mut self, location: ProblemLocation, code: ErrorCode, message: String)
fn error(&mut self, location: ProblemLocation, code: ErrorCode, message: String)
Adds a new error
sourcefn warn(&mut self, location: ProblemLocation, code: WarnCode, message: String)
fn warn(&mut self, location: ProblemLocation, code: WarnCode, message: String)
Adds a new warning
sourcefn has_errors_or_warnings(&self) -> bool
fn has_errors_or_warnings(&self) -> bool
true
if errors or warnings were identified
Auto Trait Implementations
impl RefUnwindSafe for StorageValidationResult
impl Send for StorageValidationResult
impl Sync for StorageValidationResult
impl Unpin for StorageValidationResult
impl UnwindSafe for StorageValidationResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more