pub struct DependabotAlertCreatedAlertSecurityAdvisory {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<DependabotAlertCreatedAlertSecurityAdvisoryIdentifiersItem>,
pub published_at: DateTime<Utc>,
pub references: Vec<DependabotAlertCreatedAlertSecurityAdvisoryReferencesItem>,
pub severity: DependabotAlertCreatedAlertSecurityAdvisorySeverity,
pub summary: String,
pub updated_at: DateTime<Utc>,
pub vulnerabilities: Vec<DependabotAlertCreatedAlertSecurityAdvisoryVulnerabilitiesItem>,
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<DependabotAlertCreatedAlertSecurityAdvisoryIdentifiersItem>
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<DependabotAlertCreatedAlertSecurityAdvisoryReferencesItem>
Links to additional advisory information.
severity: DependabotAlertCreatedAlertSecurityAdvisorySeverity
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<DependabotAlertCreatedAlertSecurityAdvisoryVulnerabilitiesItem>
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 DependabotAlertCreatedAlertSecurityAdvisory
impl Clone for DependabotAlertCreatedAlertSecurityAdvisory
Source§fn clone(&self) -> DependabotAlertCreatedAlertSecurityAdvisory
fn clone(&self) -> DependabotAlertCreatedAlertSecurityAdvisory
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 DependabotAlertCreatedAlertSecurityAdvisory
impl<'de> Deserialize<'de> for DependabotAlertCreatedAlertSecurityAdvisory
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<&DependabotAlertCreatedAlertSecurityAdvisory> for DependabotAlertCreatedAlertSecurityAdvisory
impl From<&DependabotAlertCreatedAlertSecurityAdvisory> for DependabotAlertCreatedAlertSecurityAdvisory
Source§fn from(value: &DependabotAlertCreatedAlertSecurityAdvisory) -> Self
fn from(value: &DependabotAlertCreatedAlertSecurityAdvisory) -> Self
Converts to this type from the input type.
Source§impl From<DependabotAlertCreatedAlertSecurityAdvisory> for DependabotAlertCreatedAlertSecurityAdvisory
impl From<DependabotAlertCreatedAlertSecurityAdvisory> for DependabotAlertCreatedAlertSecurityAdvisory
Source§fn from(value: DependabotAlertCreatedAlertSecurityAdvisory) -> Self
fn from(value: DependabotAlertCreatedAlertSecurityAdvisory) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DependabotAlertCreatedAlertSecurityAdvisory
impl RefUnwindSafe for DependabotAlertCreatedAlertSecurityAdvisory
impl Send for DependabotAlertCreatedAlertSecurityAdvisory
impl Sync for DependabotAlertCreatedAlertSecurityAdvisory
impl Unpin for DependabotAlertCreatedAlertSecurityAdvisory
impl UnwindSafe for DependabotAlertCreatedAlertSecurityAdvisory
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