pub struct ValidationReport<'a> {
pub invalid_entries: Vec<(usize, &'a Entry<'a>, Vec<ValidationError>)>,
pub duplicate_keys: Vec<&'a str>,
pub empty_entries: Vec<(usize, &'a Entry<'a>)>,
pub total_entries: usize,
pub validation_level: ValidationLevel,
}Expand description
Comprehensive validation report for a library
Fields§
§invalid_entries: Vec<(usize, &'a Entry<'a>, Vec<ValidationError>)>Entries that failed validation with their errors
duplicate_keys: Vec<&'a str>Duplicate citation keys
empty_entries: Vec<(usize, &'a Entry<'a>)>Entries with no fields
total_entries: usizeTotal number of entries in the library
validation_level: ValidationLevelValidation level used
Implementations§
Source§impl ValidationReport<'_>
impl ValidationReport<'_>
Sourcepub fn total_issues(&self) -> usize
pub fn total_issues(&self) -> usize
Get total number of issues found
Sourcepub fn issue_summary(&self) -> IssueSummary
pub fn issue_summary(&self) -> IssueSummary
Get a summary of issues by severity
Trait Implementations§
Source§impl<'a> Clone for ValidationReport<'a>
impl<'a> Clone for ValidationReport<'a>
Source§fn clone(&self) -> ValidationReport<'a>
fn clone(&self) -> ValidationReport<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ValidationReport<'a>
impl<'a> RefUnwindSafe for ValidationReport<'a>
impl<'a> Send for ValidationReport<'a>
impl<'a> Sync for ValidationReport<'a>
impl<'a> Unpin for ValidationReport<'a>
impl<'a> UnsafeUnpin for ValidationReport<'a>
impl<'a> UnwindSafe for ValidationReport<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more