pub struct SecurityAdvisoryPerformedSecurityAdvisory {Show 13 fields
pub cve_id: Option<String>,
pub cvss: SecurityAdvisoryPerformedSecurityAdvisoryCvss,
pub cwes: Vec<SecurityAdvisoryPerformedSecurityAdvisoryCwesItem>,
pub description: String,
pub ghsa_id: String,
pub identifiers: Vec<SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem>,
pub published_at: DateTime<Utc>,
pub references: Vec<SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem>,
pub severity: String,
pub summary: String,
pub updated_at: DateTime<Utc>,
pub vulnerabilities: Vec<SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem>,
pub withdrawn_at: Option<DateTime<Utc>>,
}
Expand description
The details of the security advisory, including summary, description, and severity.
JSON schema
{
"description": "The details of the security advisory, including summary, description, and severity.",
"type": "object",
"required": [
"cve_id",
"cvss",
"cwes",
"description",
"ghsa_id",
"identifiers",
"published_at",
"references",
"severity",
"summary",
"updated_at",
"vulnerabilities",
"withdrawn_at"
],
"properties": {
"cve_id": {
"type": [
"string",
"null"
]
},
"cvss": {
"type": "object",
"required": [
"score",
"vector_string"
],
"properties": {
"score": {
"type": "number"
},
"vector_string": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"cwes": {
"type": "array",
"items": {
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"cwe_id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
},
"description": {
"type": "string"
},
"ghsa_id": {
"type": "string"
},
"identifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false
}
},
"published_at": {
"type": "string",
"format": "date-time"
},
"references": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"severity": {
"type": "string"
},
"summary": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"type": [
"object",
"null"
],
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"type": "object",
"required": [
"ecosystem",
"name"
],
"properties": {
"ecosystem": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"severity": {
"type": "string"
},
"vulnerable_version_range": {
"type": "string"
}
},
"additionalProperties": false
}
},
"withdrawn_at": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
Fields§
§cve_id: Option<String>
§cvss: SecurityAdvisoryPerformedSecurityAdvisoryCvss
§cwes: Vec<SecurityAdvisoryPerformedSecurityAdvisoryCwesItem>
§description: String
§ghsa_id: String
§identifiers: Vec<SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem>
§published_at: DateTime<Utc>
§references: Vec<SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem>
§severity: String
§summary: String
§updated_at: DateTime<Utc>
§vulnerabilities: Vec<SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem>
§withdrawn_at: Option<DateTime<Utc>>
Implementations§
Trait Implementations§
Source§impl Clone for SecurityAdvisoryPerformedSecurityAdvisory
impl Clone for SecurityAdvisoryPerformedSecurityAdvisory
Source§fn clone(&self) -> SecurityAdvisoryPerformedSecurityAdvisory
fn clone(&self) -> SecurityAdvisoryPerformedSecurityAdvisory
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 SecurityAdvisoryPerformedSecurityAdvisory
impl<'de> Deserialize<'de> for SecurityAdvisoryPerformedSecurityAdvisory
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<&SecurityAdvisoryPerformedSecurityAdvisory> for SecurityAdvisoryPerformedSecurityAdvisory
impl From<&SecurityAdvisoryPerformedSecurityAdvisory> for SecurityAdvisoryPerformedSecurityAdvisory
Source§fn from(value: &SecurityAdvisoryPerformedSecurityAdvisory) -> Self
fn from(value: &SecurityAdvisoryPerformedSecurityAdvisory) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryPerformedSecurityAdvisory> for SecurityAdvisoryPerformedSecurityAdvisory
impl From<SecurityAdvisoryPerformedSecurityAdvisory> for SecurityAdvisoryPerformedSecurityAdvisory
Source§fn from(value: SecurityAdvisoryPerformedSecurityAdvisory) -> Self
fn from(value: SecurityAdvisoryPerformedSecurityAdvisory) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecurityAdvisoryPerformedSecurityAdvisory
impl RefUnwindSafe for SecurityAdvisoryPerformedSecurityAdvisory
impl Send for SecurityAdvisoryPerformedSecurityAdvisory
impl Sync for SecurityAdvisoryPerformedSecurityAdvisory
impl Unpin for SecurityAdvisoryPerformedSecurityAdvisory
impl UnwindSafe for SecurityAdvisoryPerformedSecurityAdvisory
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