pub struct Advisory {
pub id: String,
pub summary: Option<String>,
pub details: Option<String>,
pub affected: Vec<Affected>,
pub references: Vec<Reference>,
pub published: Option<DateTime<Utc>>,
pub modified: Option<DateTime<Utc>>,
pub aliases: Option<Vec<String>>,
pub database_specific: Option<Value>,
pub enrichment: Option<Enrichment>,
}Expand description
A vulnerability advisory containing information about a security issue.
This is the canonical representation used internally, based on the OSV schema. All sources convert their data to this format.
Fields§
§id: StringUnique identifier (e.g., “GHSA-xxxx-xxxx-xxxx”, “CVE-2024-1234”).
summary: Option<String>Brief summary of the vulnerability.
details: Option<String>Detailed description of the vulnerability.
affected: Vec<Affected>List of affected packages and version ranges. Optional per OSV schema.
references: Vec<Reference>References to external resources (advisories, patches, etc.). Optional per OSV schema.
published: Option<DateTime<Utc>>When the advisory was first published.
modified: Option<DateTime<Utc>>When the advisory was last modified.
aliases: Option<Vec<String>>Alternative identifiers (e.g., CVE aliases for GHSA).
database_specific: Option<Value>Source-specific metadata.
enrichment: Option<Enrichment>Enrichment data from EPSS, CISA KEV, etc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Advisory
impl<'de> Deserialize<'de> for Advisory
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
Auto Trait Implementations§
impl Freeze for Advisory
impl RefUnwindSafe for Advisory
impl Send for Advisory
impl Sync for Advisory
impl Unpin for Advisory
impl UnwindSafe for Advisory
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