#[non_exhaustive]pub struct Cwe {
pub caption: Option<String>,
pub src_url: Option<String>,
pub uid: Option<String>,
}Expand description
CWE
The CWE object represents a weakness in a software system that can be exploited by a threat actor to perform an attack. The CWE object is based on the Common Weakness Enumeration (CWE) catalog.
[] Category: | Name: cwe
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.caption: Option<String>Caption
The caption assigned to the Common Weakness Enumeration unique identifier.
optional
src_url: Option<String>§uid: Option<String>CWE ID
The Common Weakness Enumeration unique number assigned to a specific weakness. A CWE Identifier begins “CWE” followed by a sequence of digits that acts as a unique identifier. For example: CWE-123.
required
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cwe
impl<'de> Deserialize<'de> for Cwe
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
impl StructuralPartialEq for Cwe
Auto Trait Implementations§
impl Freeze for Cwe
impl RefUnwindSafe for Cwe
impl Send for Cwe
impl Sync for Cwe
impl Unpin for Cwe
impl UnwindSafe for Cwe
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