pub struct ValidationReport { /* private fields */ }Expand description
Complete validation report
Implementations§
Source§impl ValidationReport
impl ValidationReport
pub fn marks(&self) -> &[ProvenanceMark]
pub fn chains(&self) -> &[ChainReport]
Sourcepub fn format(&self, format: ValidationReportFormat) -> String
pub fn format(&self, format: ValidationReportFormat) -> String
Format the validation report as human-readable text.
Returns a formatted string if the report contains interesting information (issues, multiple chains, or multiple sequences). Returns an empty string if the report represents a single perfect chain with no issues.
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if the validation report has any issues.
Returns true if there are validation issues, missing genesis, multiple chains, or multiple sequences.
Sourcepub fn validate(marks: Vec<ProvenanceMark>) -> Self
pub fn validate(marks: Vec<ProvenanceMark>) -> Self
Validate a collection of provenance marks Validate a collection of provenance marks
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationReport
impl Debug for ValidationReport
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnwindSafe for ValidationReport
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