pub struct ValidationResults {
pub valid: bool,
pub manifest_valid: bool,
pub dependencies_resolvable: bool,
pub sources_accessible: bool,
pub local_paths_exist: bool,
pub lockfile_consistent: bool,
pub templates_valid: bool,
pub templates_rendered: usize,
pub templates_total: usize,
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Results structure for validation operations, used primarily for JSON output.
This struct aggregates all validation results into a single structure that can be serialized to JSON for machine consumption. Each field represents the result of a specific validation check.
§Fields
valid: Overall validation status (no errors, or warnings in strict mode)manifest_valid: Whether the manifest file is syntactically validdependencies_resolvable: Whether all dependencies can be resolvedsources_accessible: Whether all source repositories are accessiblelocal_paths_exist: Whether all local file dependencies existlockfile_consistent: Whether the lockfile matches the manifesterrors: List of error messages that caused validation to failwarnings: List of warning messages (non-fatal issues)
§JSON Output Example
{
"valid": true,
"manifest_valid": true,
"dependencies_resolvable": true,
"sources_accessible": true,
"local_paths_exist": true,
"lockfile_consistent": false,
"errors": [],
"warnings": ["Lockfile is missing 2 dependencies"]
}Fields§
§valid: boolOverall validation status - true if no errors (and no warnings in strict mode)
manifest_valid: boolWhether the manifest file syntax and structure is valid
dependencies_resolvable: boolWhether all dependencies can be resolved to specific versions
sources_accessible: boolWhether all source repositories are accessible via network
local_paths_exist: boolWhether all local file dependencies point to existing files
lockfile_consistent: boolWhether the lockfile is consistent with the manifest
templates_valid: boolWhether all templates rendered successfully (when –render is used)
templates_rendered: usizeNumber of templates successfully rendered
templates_total: usizeTotal number of templates found
errors: Vec<String>List of error messages that caused validation failure
warnings: Vec<String>List of warning messages (non-fatal issues)
Trait Implementations§
Source§impl Default for ValidationResults
impl Default for ValidationResults
Auto Trait Implementations§
impl Freeze for ValidationResults
impl RefUnwindSafe for ValidationResults
impl Send for ValidationResults
impl Sync for ValidationResults
impl Unpin for ValidationResults
impl UnwindSafe for ValidationResults
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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