pub struct RepositoryScope {
pub scope: &'static str,
pub project: String,
pub coverage: Coverage,
pub layers: Option<Vec<LayerStaleness>>,
pub no_result_reason: Option<String>,
}Expand description
The per-repository half of a status document.
Everything here is a property of one project’s graph. It carries the same
Coverage discriminator as ToolSecurityList, for the same reason: an
empty layers array would read as a clean repository.
Fields§
§scope: &'static strAlways "repository". Redundant on purpose — see MachineScope::scope.
project: StringThe project these layers belong to, as the workspace resolved it (ADR-0008). Named here rather than at the top level so it cannot be read as qualifying the machine half.
coverage: CoverageWhether any analyzer result is on record for this project. Always present.
layers: Option<Vec<LayerStaleness>>The live layers and how stale the advisory data behind each one is. Absent unless an analyzer result is on record.
no_result_reason: Option<String>Why there is nothing to report, and what to run. Present exactly when
coverage is no-analyzer-on-record.
Trait Implementations§
Source§impl Clone for RepositoryScope
impl Clone for RepositoryScope
Source§fn clone(&self) -> RepositoryScope
fn clone(&self) -> RepositoryScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more