pub struct Correspondence {
pub advisory: String,
pub aliases: Vec<String>,
pub package: String,
pub version: String,
pub reports: Vec<Report>,
}Expand description
One advisory, and every finding that reported it.
Fields§
§advisory: StringThe advisory’s canonical identifier: the RUSTSEC id where any member names one — that is the id ADR-0018 calls the join key and the one a Rust developer recognises — and otherwise the lowest identifier in the set.
aliases: Vec<String>Every identifier this advisory is published under, across all members.
package: StringThe package it is about.
version: StringThe version of that package that was resolved.
reports: Vec<Report>One entry per reporting finding, ordered by analyzer then key.
Implementations§
Source§impl Correspondence
impl Correspondence
Sourcepub fn confirmed_by(&self) -> usize
pub fn confirmed_by(&self) -> usize
How many distinct analyzers reported this advisory.
Two or more is agreement between independent sources, which ADR-0018 keeps as evidence rather than tidying away. One is a normal state, not a discrepancy — see the module docs.
Trait Implementations§
Source§impl Clone for Correspondence
impl Clone for Correspondence
Source§fn clone(&self) -> Correspondence
fn clone(&self) -> Correspondence
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 Correspondence
impl Debug for Correspondence
impl Eq for Correspondence
Source§impl PartialEq for Correspondence
impl PartialEq for Correspondence
impl StructuralPartialEq for Correspondence
Auto Trait Implementations§
impl Freeze for Correspondence
impl RefUnwindSafe for Correspondence
impl Send for Correspondence
impl Sync for Correspondence
impl Unpin for Correspondence
impl UnsafeUnpin for Correspondence
impl UnwindSafe for Correspondence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.