pub struct PrivateVulnerabilityReportCreate {
pub summary: String,
pub description: String,
pub vulnerabilities: Option<Option<Vec<RepositoryAdvisoryCreateVulnerabilitiesInner>>>,
pub cwe_ids: Option<Option<Vec<String>>>,
pub severity: Option<Option<Severity>>,
pub cvss_vector_string: Option<Option<String>>,
pub start_private_fork: Option<bool>,
}
Fields§
§summary: String
A short summary of the advisory.
description: String
A detailed description of what the advisory impacts.
vulnerabilities: Option<Option<Vec<RepositoryAdvisoryCreateVulnerabilitiesInner>>>
An array of products affected by the vulnerability detailed in a repository security advisory.
cwe_ids: Option<Option<Vec<String>>>
A list of Common Weakness Enumeration (CWE) IDs.
severity: Option<Option<Severity>>
The severity of the advisory. You must choose between setting this field or cvss_vector_string
.
cvss_vector_string: Option<Option<String>>
The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity
.
start_private_fork: Option<bool>
Whether to create a temporary private fork of the repository to collaborate on a fix.
Implementations§
Source§impl PrivateVulnerabilityReportCreate
impl PrivateVulnerabilityReportCreate
pub fn new( summary: String, description: String, ) -> PrivateVulnerabilityReportCreate
Trait Implementations§
Source§impl Clone for PrivateVulnerabilityReportCreate
impl Clone for PrivateVulnerabilityReportCreate
Source§fn clone(&self) -> PrivateVulnerabilityReportCreate
fn clone(&self) -> PrivateVulnerabilityReportCreate
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 Default for PrivateVulnerabilityReportCreate
impl Default for PrivateVulnerabilityReportCreate
Source§fn default() -> PrivateVulnerabilityReportCreate
fn default() -> PrivateVulnerabilityReportCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrivateVulnerabilityReportCreate
impl<'de> Deserialize<'de> for PrivateVulnerabilityReportCreate
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 PartialEq for PrivateVulnerabilityReportCreate
impl PartialEq for PrivateVulnerabilityReportCreate
Source§fn eq(&self, other: &PrivateVulnerabilityReportCreate) -> bool
fn eq(&self, other: &PrivateVulnerabilityReportCreate) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PrivateVulnerabilityReportCreate
Auto Trait Implementations§
impl Freeze for PrivateVulnerabilityReportCreate
impl RefUnwindSafe for PrivateVulnerabilityReportCreate
impl Send for PrivateVulnerabilityReportCreate
impl Sync for PrivateVulnerabilityReportCreate
impl Unpin for PrivateVulnerabilityReportCreate
impl UnwindSafe for PrivateVulnerabilityReportCreate
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