pub struct SecurityAdvisoryCwes {
pub cwe_id: String,
pub name: String,
}
Expand description
A CWE weakness assigned to the advisory.
JSON schema
{
"title": "security_advisory cwes",
"description": "A CWE weakness assigned to the advisory.",
"type": "object",
"required": [
"cwe_id",
"name"
],
"properties": {
"cwe_id": {
"description": "The unique CWE ID.",
"type": "string"
},
"name": {
"description": "The short, plain text name of the CWE.",
"type": "string"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§cwe_id: String
The unique CWE ID.
name: String
The short, plain text name of the CWE.
Implementations§
Source§impl SecurityAdvisoryCwes
impl SecurityAdvisoryCwes
pub fn builder() -> SecurityAdvisoryCwes
Trait Implementations§
Source§impl Clone for SecurityAdvisoryCwes
impl Clone for SecurityAdvisoryCwes
Source§fn clone(&self) -> SecurityAdvisoryCwes
fn clone(&self) -> SecurityAdvisoryCwes
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 SecurityAdvisoryCwes
impl Debug for SecurityAdvisoryCwes
Source§impl<'de> Deserialize<'de> for SecurityAdvisoryCwes
impl<'de> Deserialize<'de> for SecurityAdvisoryCwes
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<&SecurityAdvisoryCwes> for SecurityAdvisoryCwes
impl From<&SecurityAdvisoryCwes> for SecurityAdvisoryCwes
Source§fn from(value: &SecurityAdvisoryCwes) -> Self
fn from(value: &SecurityAdvisoryCwes) -> Self
Converts to this type from the input type.
Source§impl From<SecurityAdvisoryCwes> for SecurityAdvisoryCwes
impl From<SecurityAdvisoryCwes> for SecurityAdvisoryCwes
Source§fn from(value: SecurityAdvisoryCwes) -> Self
fn from(value: SecurityAdvisoryCwes) -> Self
Converts to this type from the input type.
Source§impl Serialize for SecurityAdvisoryCwes
impl Serialize for SecurityAdvisoryCwes
Auto Trait Implementations§
impl Freeze for SecurityAdvisoryCwes
impl RefUnwindSafe for SecurityAdvisoryCwes
impl Send for SecurityAdvisoryCwes
impl Sync for SecurityAdvisoryCwes
impl Unpin for SecurityAdvisoryCwes
impl UnwindSafe for SecurityAdvisoryCwes
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