pub struct DepResult {
pub name: String,
pub version: String,
pub scope: DepScope,
pub unused: Vec<UnusedDep>,
pub outdated: Vec<OutdatedDep>,
pub escalate_at_majors: Option<u32>,
}Expand description
Result of a dependency check.
Fields§
§name: StringSubject name.
version: StringSubject version.
scope: DepScopeScope that produced this result.
unused: Vec<UnusedDep>Unused dependencies.
outdated: Vec<OutdatedDep>Outdated dependencies.
escalate_at_majors: Option<u32>Major-version escalation threshold that was active when the
result was produced. Carried so into_report can re-derive the
severity each finding would have had at execution time.
Implementations§
Source§impl DepResult
impl DepResult
Sourcepub fn total_findings(&self) -> usize
pub fn total_findings(&self) -> usize
Total findings across both categories.
Sourcepub fn unused_count(&self) -> usize
pub fn unused_count(&self) -> usize
Number of unused-dependency findings.
Sourcepub fn outdated_count(&self) -> usize
pub fn outdated_count(&self) -> usize
Number of outdated-dependency findings.
Sourcepub fn worst_severity(&self) -> Option<Severity>
pub fn worst_severity(&self) -> Option<Severity>
Highest severity present across all findings, if any.
Sourcepub fn into_report(self) -> Report
pub fn into_report(self) -> Report
Convert this result into a dev_report::Report.
No findings → one CheckResult::pass("deps::health"). Otherwise
one CheckResult per finding, named deps::unused::<crate> or
deps::outdated::<crate>, tagged deps plus a kind-specific
tag (unused or outdated). Outdated findings carry numeric
evidence for major_behind.