Struct DependabotAlertFixedAlertSecurityAdvisory

Source
pub struct DependabotAlertFixedAlertSecurityAdvisory {
Show 13 fields pub cve_id: Option<String>, pub cvss: SecurityAdvisoryCvss, pub cwes: Vec<SecurityAdvisoryCwes>, pub description: String, pub ghsa_id: String, pub identifiers: Vec<DependabotAlertFixedAlertSecurityAdvisoryIdentifiersItem>, pub published_at: DateTime<Utc>, pub references: Vec<DependabotAlertFixedAlertSecurityAdvisoryReferencesItem>, pub severity: DependabotAlertFixedAlertSecurityAdvisorySeverity, pub summary: String, pub updated_at: DateTime<Utc>, pub vulnerabilities: Vec<DependabotAlertFixedAlertSecurityAdvisoryVulnerabilitiesItem>, pub withdrawn_at: Option<DateTime<Utc>>,
}
Expand description

Details for the GitHub Security Advisory.

JSON schema
{
 "description": "Details for the GitHub Security Advisory.",
 "type": "object",
 "required": [
   "cve_id",
   "cvss",
   "cwes",
   "description",
   "ghsa_id",
   "identifiers",
   "published_at",
   "references",
   "severity",
   "summary",
   "updated_at",
   "vulnerabilities",
   "withdrawn_at"
 ],
 "properties": {
   "cve_id": {
     "description": "The unique CVE ID assigned to the advisory.",
     "type": [
       "string",
       "null"
     ]
   },
   "cvss": {
     "$ref": "#/definitions/security-advisory-cvss"
   },
   "cwes": {
     "description": "Details for the advisory pertaining to Common Weakness Enumeration.",
     "type": "array",
     "items": {
       "$ref": "#/definitions/security-advisory-cwes"
     }
   },
   "description": {
     "description": "A long-form Markdown-supported description of the advisory.",
     "type": "string"
   },
   "ghsa_id": {
     "description": "Details for the GitHub Security Advisory.",
     "type": "string"
   },
   "identifiers": {
     "description": "Values that identify this advisory among security information sources.",
     "type": "array",
     "items": {
       "description": "An advisory identifier.",
       "type": "object",
       "required": [
         "type",
         "value"
       ],
       "properties": {
         "type": {
           "description": "The type of advisory identifier.",
           "type": "string",
           "enum": [
             "CVE",
             "GHSA"
           ]
         },
         "value": {
           "description": "The value of the advisory identifer.",
           "type": "string"
         }
       },
       "additionalProperties": false
     }
   },
   "published_at": {
     "description": "The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
     "type": "string",
     "format": "date-time"
   },
   "references": {
     "description": "Links to additional advisory information.",
     "type": "array",
     "items": {
       "type": "object",
       "required": [
         "url"
       ],
       "properties": {
         "url": {
           "description": "The URL of the reference.",
           "type": "string",
           "format": "uri"
         }
       },
       "additionalProperties": false
     }
   },
   "severity": {
     "description": "The severity of the advisory.",
     "type": "string",
     "enum": [
       "low",
       "medium",
       "high",
       "critical"
     ]
   },
   "summary": {
     "description": "A short, plain text summary of the advisory.",
     "type": "string"
   },
   "updated_at": {
     "description": "The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
     "type": "string",
     "format": "date-time"
   },
   "vulnerabilities": {
     "description": "Vulnerable version range information for the advisory.",
     "type": "array",
     "items": {
       "description": "Details pertaining to one vulnerable version range for the advisory.",
       "type": "object",
       "required": [
         "first_patched_version",
         "package",
         "severity",
         "vulnerable_version_range"
       ],
       "properties": {
         "first_patched_version": {
           "description": "Details pertaining to the package version that patches this vulnerability.",
           "type": "object",
           "required": [
             "identifier"
           ],
           "properties": {
             "identifier": {
               "description": "The package version that patches this vulnerability.",
               "type": "string"
             }
           },
           "additionalProperties": false
         },
         "package": {
           "$ref": "#/definitions/dependabot-alert-package"
         },
         "severity": {
           "description": "The severity of the vulnerability.",
           "type": "string",
           "enum": [
             "low",
             "medium",
             "high",
             "critical"
           ]
         },
         "vulnerable_version_range": {
           "description": "Conditions that identify vulnerable versions of this vulnerability's package.",
           "type": "string"
         }
       },
       "additionalProperties": false
     }
   },
   "withdrawn_at": {
     "description": "The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
     "type": [
       "string",
       "null"
     ],
     "format": "date-time"
   }
 },
 "additionalProperties": false
}

Fields§

§cve_id: Option<String>

The unique CVE ID assigned to the advisory.

§cvss: SecurityAdvisoryCvss§cwes: Vec<SecurityAdvisoryCwes>

Details for the advisory pertaining to Common Weakness Enumeration.

§description: String

A long-form Markdown-supported description of the advisory.

§ghsa_id: String

Details for the GitHub Security Advisory.

§identifiers: Vec<DependabotAlertFixedAlertSecurityAdvisoryIdentifiersItem>

Values that identify this advisory among security information sources.

§published_at: DateTime<Utc>

The time that the advisory was published in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

§references: Vec<DependabotAlertFixedAlertSecurityAdvisoryReferencesItem>

Links to additional advisory information.

§severity: DependabotAlertFixedAlertSecurityAdvisorySeverity

The severity of the advisory.

§summary: String

A short, plain text summary of the advisory.

§updated_at: DateTime<Utc>

The time that the advisory was last modified in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

§vulnerabilities: Vec<DependabotAlertFixedAlertSecurityAdvisoryVulnerabilitiesItem>

Vulnerable version range information for the advisory.

§withdrawn_at: Option<DateTime<Utc>>

The time that the advisory was withdrawn in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

Implementations§

Trait Implementations§

Source§

impl Clone for DependabotAlertFixedAlertSecurityAdvisory

Source§

fn clone(&self) -> DependabotAlertFixedAlertSecurityAdvisory

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DependabotAlertFixedAlertSecurityAdvisory

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DependabotAlertFixedAlertSecurityAdvisory

Source§

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<&DependabotAlertFixedAlertSecurityAdvisory> for DependabotAlertFixedAlertSecurityAdvisory

Source§

fn from(value: &DependabotAlertFixedAlertSecurityAdvisory) -> Self

Converts to this type from the input type.
Source§

impl From<DependabotAlertFixedAlertSecurityAdvisory> for DependabotAlertFixedAlertSecurityAdvisory

Source§

fn from(value: DependabotAlertFixedAlertSecurityAdvisory) -> Self

Converts to this type from the input type.
Source§

impl Serialize for DependabotAlertFixedAlertSecurityAdvisory

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<DependabotAlertFixedAlertSecurityAdvisory> for DependabotAlertFixedAlertSecurityAdvisory

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from( value: DependabotAlertFixedAlertSecurityAdvisory, ) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,