pub struct SecurityAdvisoryPerformed {
pub action: SecurityAdvisoryPerformedAction,
pub security_advisory: SecurityAdvisoryPerformedSecurityAdvisory,
}
Expand description
SecurityAdvisoryPerformed
JSON schema
{
"title": "security_advisory performed event",
"type": "object",
"required": [
"action",
"security_advisory"
],
"properties": {
"action": {
"type": "string",
"enum": [
"performed"
]
},
"security_advisory": {
"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
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: SecurityAdvisoryPerformedAction
§security_advisory: SecurityAdvisoryPerformedSecurityAdvisory
Implementations§
Source§impl SecurityAdvisoryPerformed
impl SecurityAdvisoryPerformed
pub fn builder() -> SecurityAdvisoryPerformed
Trait Implementations§
Source§impl Clone for SecurityAdvisoryPerformed
impl Clone for SecurityAdvisoryPerformed
Source§fn clone(&self) -> SecurityAdvisoryPerformed
fn clone(&self) -> SecurityAdvisoryPerformed
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 Debug for SecurityAdvisoryPerformed
impl Debug for SecurityAdvisoryPerformed
Source§impl<'de> Deserialize<'de> for SecurityAdvisoryPerformed
impl<'de> Deserialize<'de> for SecurityAdvisoryPerformed
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<&SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed
impl From<&SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed
Source§fn from(value: &SecurityAdvisoryPerformed) -> Self
fn from(value: &SecurityAdvisoryPerformed) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryPerformed> for SecurityAdvisoryEvent
impl From<SecurityAdvisoryPerformed> for SecurityAdvisoryEvent
Source§fn from(value: SecurityAdvisoryPerformed) -> Self
fn from(value: SecurityAdvisoryPerformed) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed
impl From<SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed
Source§fn from(value: SecurityAdvisoryPerformed) -> Self
fn from(value: SecurityAdvisoryPerformed) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecurityAdvisoryPerformed
impl RefUnwindSafe for SecurityAdvisoryPerformed
impl Send for SecurityAdvisoryPerformed
impl Sync for SecurityAdvisoryPerformed
impl Unpin for SecurityAdvisoryPerformed
impl UnwindSafe for SecurityAdvisoryPerformed
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