pub struct DependabotAlertSecurityAdvisory {Show 13 fields
pub cve_id: Option<String>,
pub cvss: SecurityAdvisoryCvss,
pub cwes: Vec<SecurityAdvisoryCwes>,
pub description: String,
pub ghsa_id: String,
pub identifiers: Vec<DependabotAlertSecurityAdvisoryIdentifiersItem>,
pub published_at: DateTime<Utc>,
pub references: Vec<DependabotAlertSecurityAdvisoryReferencesItem>,
pub severity: DependabotAlertSecurityAdvisorySeverity,
pub summary: String,
pub updated_at: DateTime<Utc>,
pub vulnerabilities: Vec<DependabotAlertSecurityAdvisoryVulnerabilitiesItem>,
pub withdrawn_at: Option<DateTime<Utc>>,
}
Expand description
Details for the GitHub Security Advisory.
JSON schema
{
"description": "Details for the GitHub Security Advisory.",
"type": "object",
"required": [
"cve_id",
"cvss",
"cwes",
"description",
"ghsa_id",
"identifiers",
"published_at",
"references",
"severity",
"summary",
"updated_at",
"vulnerabilities",
"withdrawn_at"
],
"properties": {
"cve_id": {
"description": "The unique CVE ID assigned to the advisory.",
"type": [
"string",
"null"
]
},
"cvss": {
"$ref": "#/definitions/security-advisory-cvss"
},
"cwes": {
"description": "Details for the advisory pertaining to Common Weakness Enumeration.",
"type": "array",
"items": {
"$ref": "#/definitions/security-advisory-cwes"
}
},
"description": {
"description": "A long-form Markdown-supported description of the advisory.",
"type": "string"
},
"ghsa_id": {
"description": "Details for the GitHub Security Advisory.",
"type": "string"
},
"identifiers": {
"description": "Values that identify this advisory among security information sources.",
"type": "array",
"items": {
"description": "An advisory identifier.",
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"description": "The type of advisory identifier.",
"type": "string",
"enum": [
"CVE",
"GHSA"
]
},
"value": {
"description": "The value of the advisory identifer.",
"type": "string"
}
},
"additionalProperties": false
}
},
"published_at": {
"description": "The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"references": {
"description": "Links to additional advisory information.",
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"description": "The URL of the reference.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"severity": {
"description": "The severity of the advisory.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"summary": {
"description": "A short, plain text summary of the advisory.",
"type": "string"
},
"updated_at": {
"description": "The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"vulnerabilities": {
"description": "Vulnerable version range information for the advisory.",
"type": "array",
"items": {
"description": "Details pertaining to one vulnerable version range for the advisory.",
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"description": "Details pertaining to the package version that patches this vulnerability.",
"type": "object",
"required": [
"identifier"
],
"properties": {
"identifier": {
"description": "The package version that patches this vulnerability.",
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"severity": {
"description": "The severity of the vulnerability.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"vulnerable_version_range": {
"description": "Conditions that identify vulnerable versions of this vulnerability's package.",
"type": "string"
}
},
"additionalProperties": false
}
},
"withdrawn_at": {
"description": "The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
}
Fields§
§cve_id: Option<String>
The unique CVE ID assigned to the advisory.
cvss: SecurityAdvisoryCvss
§cwes: Vec<SecurityAdvisoryCwes>
Details for the advisory pertaining to Common Weakness Enumeration.
description: String
A long-form Markdown-supported description of the advisory.
ghsa_id: String
Details for the GitHub Security Advisory.
identifiers: Vec<DependabotAlertSecurityAdvisoryIdentifiersItem>
Values that identify this advisory among security information sources.
published_at: DateTime<Utc>
The time that the advisory was published in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
references: Vec<DependabotAlertSecurityAdvisoryReferencesItem>
Links to additional advisory information.
severity: DependabotAlertSecurityAdvisorySeverity
The severity of the advisory.
summary: String
A short, plain text summary of the advisory.
updated_at: DateTime<Utc>
The time that the advisory was last modified in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
vulnerabilities: Vec<DependabotAlertSecurityAdvisoryVulnerabilitiesItem>
Vulnerable version range information for the advisory.
withdrawn_at: Option<DateTime<Utc>>
The time that the advisory was withdrawn in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
Implementations§
Trait Implementations§
Source§impl Clone for DependabotAlertSecurityAdvisory
impl Clone for DependabotAlertSecurityAdvisory
Source§fn clone(&self) -> DependabotAlertSecurityAdvisory
fn clone(&self) -> DependabotAlertSecurityAdvisory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for DependabotAlertSecurityAdvisory
impl<'de> Deserialize<'de> for DependabotAlertSecurityAdvisory
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 From<&DependabotAlertSecurityAdvisory> for DependabotAlertSecurityAdvisory
impl From<&DependabotAlertSecurityAdvisory> for DependabotAlertSecurityAdvisory
Source§fn from(value: &DependabotAlertSecurityAdvisory) -> Self
fn from(value: &DependabotAlertSecurityAdvisory) -> Self
Converts to this type from the input type.
Source§impl From<DependabotAlertSecurityAdvisory> for DependabotAlertSecurityAdvisory
impl From<DependabotAlertSecurityAdvisory> for DependabotAlertSecurityAdvisory
Source§fn from(value: DependabotAlertSecurityAdvisory) -> Self
fn from(value: DependabotAlertSecurityAdvisory) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DependabotAlertSecurityAdvisory
impl RefUnwindSafe for DependabotAlertSecurityAdvisory
impl Send for DependabotAlertSecurityAdvisory
impl Sync for DependabotAlertSecurityAdvisory
impl Unpin for DependabotAlertSecurityAdvisory
impl UnwindSafe for DependabotAlertSecurityAdvisory
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