pub struct IntelAdvisory {Show 13 fields
pub id: String,
pub ecosystem: String,
pub package: String,
pub versions: Vec<String>,
pub ranges: Vec<Vec<RangeEvent>>,
pub severity: Severity,
pub summary: String,
pub aliases: Vec<String>,
pub kev: bool,
pub epss: Option<f64>,
pub cvss: String,
pub cwe: Vec<String>,
pub source: String,
}Expand description
One advisory, in the compact form the bundle carries. Empty fields are left out of the JSON, so a plain OSV range advisory costs a few hundred bytes.
Fields§
§id: String§ecosystem: String§package: String§versions: Vec<String>§ranges: Vec<Vec<RangeEvent>>§severity: Severity§summary: String§aliases: Vec<String>§kev: boolIn CISA’s Known Exploited Vulnerabilities catalog.
epss: Option<f64>§cvss: String§cwe: Vec<String>§source: StringImplementations§
Source§impl IntelAdvisory
impl IntelAdvisory
pub fn from_advisory(a: &Advisory) -> Self
pub fn to_advisory(&self) -> Advisory
Trait Implementations§
Source§impl Clone for IntelAdvisory
impl Clone for IntelAdvisory
Source§impl Debug for IntelAdvisory
impl Debug for IntelAdvisory
Source§impl<'de> Deserialize<'de> for IntelAdvisory
impl<'de> Deserialize<'de> for IntelAdvisory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IntelAdvisory
impl PartialEq for IntelAdvisory
Source§impl Serialize for IntelAdvisory
impl Serialize for IntelAdvisory
impl StructuralPartialEq for IntelAdvisory
Auto Trait Implementations§
impl Freeze for IntelAdvisory
impl RefUnwindSafe for IntelAdvisory
impl Send for IntelAdvisory
impl Sync for IntelAdvisory
impl Unpin for IntelAdvisory
impl UnsafeUnpin for IntelAdvisory
impl UnwindSafe for IntelAdvisory
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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