pub struct CweInfoItem {
pub id: String,
pub type_: CweInfoItemType,
}
Expand description
CweInfoItem
JSON schema
{
"type": "object",
"required": [
"ID",
"Type"
],
"properties": {
"ID": {
"description": "CWE ID",
"type": "string",
"format": "integer"
},
"Type": {
"description": "Type of CWE object",
"type": "string",
"enum": [
"category",
"view",
"pillar_weakness",
"base_weakness",
"variant_weakness",
"chain_weakness",
"compound_weakness",
"deprecated_weakness",
"deprecated_category",
"deprecated_view"
]
}
}
}
Fields§
§id: String
CWE ID
type_: CweInfoItemType
Type of CWE object
Trait Implementations§
Source§impl Clone for CweInfoItem
impl Clone for CweInfoItem
Source§fn clone(&self) -> CweInfoItem
fn clone(&self) -> CweInfoItem
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 CweInfoItem
impl Debug for CweInfoItem
Source§impl<'de> Deserialize<'de> for CweInfoItem
impl<'de> Deserialize<'de> for CweInfoItem
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<&CweInfoItem> for CweInfoItem
impl From<&CweInfoItem> for CweInfoItem
Source§fn from(value: &CweInfoItem) -> Self
fn from(value: &CweInfoItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CweInfoItem
impl RefUnwindSafe for CweInfoItem
impl Send for CweInfoItem
impl Sync for CweInfoItem
impl Unpin for CweInfoItem
impl UnwindSafe for CweInfoItem
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