pub struct SecurityAdvisoryUpdated {
pub action: SecurityAdvisoryUpdatedAction,
pub security_advisory: SecurityAdvisoryUpdatedSecurityAdvisory,
}
Expand description
SecurityAdvisoryUpdated
JSON schema
{
"title": "security_advisory updated event",
"type": "object",
"required": [
"action",
"security_advisory"
],
"properties": {
"action": {
"type": "string",
"enum": [
"updated"
]
},
"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: SecurityAdvisoryUpdatedAction
§security_advisory: SecurityAdvisoryUpdatedSecurityAdvisory
Implementations§
Source§impl SecurityAdvisoryUpdated
impl SecurityAdvisoryUpdated
pub fn builder() -> SecurityAdvisoryUpdated
Trait Implementations§
Source§impl Clone for SecurityAdvisoryUpdated
impl Clone for SecurityAdvisoryUpdated
Source§fn clone(&self) -> SecurityAdvisoryUpdated
fn clone(&self) -> SecurityAdvisoryUpdated
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 SecurityAdvisoryUpdated
impl Debug for SecurityAdvisoryUpdated
Source§impl<'de> Deserialize<'de> for SecurityAdvisoryUpdated
impl<'de> Deserialize<'de> for SecurityAdvisoryUpdated
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<&SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated
impl From<&SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated
Source§fn from(value: &SecurityAdvisoryUpdated) -> Self
fn from(value: &SecurityAdvisoryUpdated) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryUpdated> for SecurityAdvisoryEvent
impl From<SecurityAdvisoryUpdated> for SecurityAdvisoryEvent
Source§fn from(value: SecurityAdvisoryUpdated) -> Self
fn from(value: SecurityAdvisoryUpdated) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated
impl From<SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated
Source§fn from(value: SecurityAdvisoryUpdated) -> Self
fn from(value: SecurityAdvisoryUpdated) -> Self
Converts to this type from the input type.
Source§impl Serialize for SecurityAdvisoryUpdated
impl Serialize for SecurityAdvisoryUpdated
Auto Trait Implementations§
impl Freeze for SecurityAdvisoryUpdated
impl RefUnwindSafe for SecurityAdvisoryUpdated
impl Send for SecurityAdvisoryUpdated
impl Sync for SecurityAdvisoryUpdated
impl Unpin for SecurityAdvisoryUpdated
impl UnwindSafe for SecurityAdvisoryUpdated
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