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