#[non_exhaustive]pub struct ValidationReport {
pub scanned_files: usize,
pub failed_files: usize,
pub ok: bool,
pub validation_errors: Vec<ValidationError>,
pub scan_errors: Vec<ScanError>,
}Expand description
Result of a validation run.
CI pipelines must check both validation_errors and scan_errors.
A non-empty scan_errors means the validator did not fully run —
treat this as a build failure regardless of validation_errors.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scanned_files: usizeNumber of files successfully scanned (read + parsed).
failed_files: usizeNumber of files that could not be scanned (read/parse failures).
ok: boolWhether all scanned files passed validation AND no scan errors occurred.
validation_errors: Vec<ValidationError>Individual GTS ID validation errors found in scanned files.
scan_errors: Vec<ScanError>Scan-level errors: files that could not be read or parsed. Non-empty means the validator did not fully cover the repository.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn files_attempted(&self) -> usize
pub fn files_attempted(&self) -> usize
Total number of files attempted (scanned + failed).
Sourcepub fn errors_count(&self) -> usize
pub fn errors_count(&self) -> usize
Number of validation errors found.
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 (const: unstable) · 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GtsSerialize for Twhere
T: Serialize,
impl<T> GtsSerialize for Twhere
T: Serialize,
Source§fn gts_serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn gts_serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value using the GTS serialization protocol. Read more