Struct rocfl::ocfl::ObjectValidationResult
source · [−]pub struct ObjectValidationResult {
pub object_id: Option<String>,
pub storage_path: String,
/* private fields */
}
Expand description
The results of validating an OCFL object
Fields
object_id: Option<String>
The id of the object, if known
storage_path: String
The path to the object’s root directory, relative the repository root
Implementations
Trait Implementations
sourceimpl Debug for ObjectValidationResult
impl Debug for ObjectValidationResult
sourceimpl ValidationResult for ObjectValidationResult
impl ValidationResult for ObjectValidationResult
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 ObjectValidationResult
impl Send for ObjectValidationResult
impl Sync for ObjectValidationResult
impl Unpin for ObjectValidationResult
impl UnwindSafe for ObjectValidationResult
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