pub struct RepositoryAdvisoryCreate {
pub summary: String,
pub description: String,
pub cve_id: Option<Option<String>>,
pub vulnerabilities: Vec<RepositoryAdvisoryCreateVulnerabilitiesInner>,
pub cwe_ids: Option<Option<Vec<String>>>,
pub credits: Option<Option<Vec<RepositoryAdvisoryCreateCreditsInner>>>,
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.
cve_id: Option<Option<String>>
The Common Vulnerabilities and Exposures (CVE) ID.
vulnerabilities: Vec<RepositoryAdvisoryCreateVulnerabilitiesInner>
A product affected by the vulnerability detailed in a repository security advisory.
cwe_ids: Option<Option<Vec<String>>>
A list of Common Weakness Enumeration (CWE) IDs.
credits: Option<Option<Vec<RepositoryAdvisoryCreateCreditsInner>>>
A list of users receiving credit for their participation in the security advisory.
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 RepositoryAdvisoryCreate
impl RepositoryAdvisoryCreate
pub fn new( summary: String, description: String, vulnerabilities: Vec<RepositoryAdvisoryCreateVulnerabilitiesInner>, ) -> RepositoryAdvisoryCreate
Trait Implementations§
Source§impl Clone for RepositoryAdvisoryCreate
impl Clone for RepositoryAdvisoryCreate
Source§fn clone(&self) -> RepositoryAdvisoryCreate
fn clone(&self) -> RepositoryAdvisoryCreate
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 RepositoryAdvisoryCreate
impl Debug for RepositoryAdvisoryCreate
Source§impl Default for RepositoryAdvisoryCreate
impl Default for RepositoryAdvisoryCreate
Source§fn default() -> RepositoryAdvisoryCreate
fn default() -> RepositoryAdvisoryCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryAdvisoryCreate
impl<'de> Deserialize<'de> for RepositoryAdvisoryCreate
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 RepositoryAdvisoryCreate
impl PartialEq for RepositoryAdvisoryCreate
Source§impl Serialize for RepositoryAdvisoryCreate
impl Serialize for RepositoryAdvisoryCreate
impl StructuralPartialEq for RepositoryAdvisoryCreate
Auto Trait Implementations§
impl Freeze for RepositoryAdvisoryCreate
impl RefUnwindSafe for RepositoryAdvisoryCreate
impl Send for RepositoryAdvisoryCreate
impl Sync for RepositoryAdvisoryCreate
impl Unpin for RepositoryAdvisoryCreate
impl UnwindSafe for RepositoryAdvisoryCreate
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