pub struct Advisory<V> {
pub id: String,
pub aliases: Vec<String>,
pub summary: Option<String>,
pub severity: Severity,
pub cvss_score: Option<f32>,
pub ranges: Vec<ParsedRange<V>>,
pub versions: Vec<V>,
}Expand description
One advisory’s facts for a single affected package, version type V. The range bounds
and enumerated versions are parsed once at load (see load).
Fields§
§id: String§aliases: Vec<String>§summary: Option<String>§severity: Severity§cvss_score: Option<f32>A CVSS base score when the record carries a parseable CVSS_V3 vector (always None
for feeders whose Spec::severity does not extract one, e.g. npm).
ranges: Vec<ParsedRange<V>>matchable ranges with bounds pre-parsed (see parse_range).
versions: Vec<V>Enumerated affected versions, sorted+deduped for binary_search (empty when
Spec::use_versions is false).
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Advisory<V>
impl<V> RefUnwindSafe for Advisory<V>where
V: RefUnwindSafe,
impl<V> Send for Advisory<V>where
V: Send,
impl<V> Sync for Advisory<V>where
V: Sync,
impl<V> Unpin for Advisory<V>where
V: Unpin,
impl<V> UnsafeUnpin for Advisory<V>
impl<V> UnwindSafe for Advisory<V>where
V: UnwindSafe,
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<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>
Converts
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>
Converts
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