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