pub struct CrossReference {
pub advisory: String,
pub aliases: Vec<String>,
pub package: String,
pub version: String,
pub confirmed_by: usize,
pub reports: Vec<CrossReferenceReport>,
}Expand description
One advisory in the cross-reference (ADR-0018 v1.1), as a serialisable view.
A view, not a record: every finding it names is still in its own layer
under its own key, and SecurityListReport::findings still counts them all.
That is what makes a duplicate pair read as one advisory confirmed by two
analyzers rather than as a count that silently halved.
Fields§
§advisory: StringThe advisory’s canonical id — the RUSTSEC id where both sides publish one.
aliases: Vec<String>Every identifier it is published under.
package: StringThe package and resolved version it is about.
version: StringThat package’s resolved version.
confirmed_by: usizeHow many distinct analyzers reported it. 1 is a normal state, not a
discrepancy: the two databases are pinned independently, and yanked is
not an advisory kind OSV can carry at all.
reports: Vec<CrossReferenceReport>Which analyzers, and the still-addressable finding key each one wrote.
Trait Implementations§
Source§impl Clone for CrossReference
impl Clone for CrossReference
Source§fn clone(&self) -> CrossReference
fn clone(&self) -> CrossReference
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more