pub struct RepositoryAdvisoryUpdate {
pub summary: Option<String>,
pub description: Option<String>,
pub cve_id: Option<Option<String>>,
pub vulnerabilities: Option<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 state: Option<State>,
pub collaborating_users: Option<Option<Vec<String>>>,
pub collaborating_teams: Option<Option<Vec<String>>>,
}
Fields§
§summary: Option<String>
A short summary of the advisory.
description: Option<String>
A detailed description of what the advisory impacts.
cve_id: Option<Option<String>>
The Common Vulnerabilities and Exposures (CVE) ID.
vulnerabilities: Option<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
.
state: Option<State>
The state of the advisory.
collaborating_users: Option<Option<Vec<String>>>
A list of usernames who have been granted write access to the advisory.
collaborating_teams: Option<Option<Vec<String>>>
A list of team slugs which have been granted write access to the advisory.
Implementations§
Source§impl RepositoryAdvisoryUpdate
impl RepositoryAdvisoryUpdate
pub fn new() -> RepositoryAdvisoryUpdate
Trait Implementations§
Source§impl Clone for RepositoryAdvisoryUpdate
impl Clone for RepositoryAdvisoryUpdate
Source§fn clone(&self) -> RepositoryAdvisoryUpdate
fn clone(&self) -> RepositoryAdvisoryUpdate
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 RepositoryAdvisoryUpdate
impl Debug for RepositoryAdvisoryUpdate
Source§impl Default for RepositoryAdvisoryUpdate
impl Default for RepositoryAdvisoryUpdate
Source§fn default() -> RepositoryAdvisoryUpdate
fn default() -> RepositoryAdvisoryUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryAdvisoryUpdate
impl<'de> Deserialize<'de> for RepositoryAdvisoryUpdate
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 RepositoryAdvisoryUpdate
impl PartialEq for RepositoryAdvisoryUpdate
Source§impl Serialize for RepositoryAdvisoryUpdate
impl Serialize for RepositoryAdvisoryUpdate
impl StructuralPartialEq for RepositoryAdvisoryUpdate
Auto Trait Implementations§
impl Freeze for RepositoryAdvisoryUpdate
impl RefUnwindSafe for RepositoryAdvisoryUpdate
impl Send for RepositoryAdvisoryUpdate
impl Sync for RepositoryAdvisoryUpdate
impl Unpin for RepositoryAdvisoryUpdate
impl UnwindSafe for RepositoryAdvisoryUpdate
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