pub struct CvssV3MappingNode {
pub id: String,
pub cvss_v3: Option<CvssV3Vector>,
pub children: Vec<CvssV3MappingNode>,
}Expand description
A node in the VRT to CVSS v3 mapping tree
Fields§
§id: StringVRT identifier (e.g., “cross_site_scripting_xss”)
cvss_v3: Option<CvssV3Vector>Associated CVSS v3 vector
children: Vec<CvssV3MappingNode>Child mappings (for hierarchical structure)
Implementations§
Source§impl CvssV3MappingNode
impl CvssV3MappingNode
Sourcepub fn has_cvss_mapping(&self) -> bool
pub fn has_cvss_mapping(&self) -> bool
Returns true if this node has a CVSS v3 mapping
Sourcepub fn has_children(&self) -> bool
pub fn has_children(&self) -> bool
Returns true if this node has children
Sourcepub fn find_by_id(&self, vrt_id: &str) -> Option<&CvssV3MappingNode>
pub fn find_by_id(&self, vrt_id: &str) -> Option<&CvssV3MappingNode>
Recursively finds a mapping node by VRT ID
Sourcepub fn leaf_nodes(&self) -> Vec<&CvssV3MappingNode>
pub fn leaf_nodes(&self) -> Vec<&CvssV3MappingNode>
Returns all leaf nodes (nodes with CVSS mappings but no children)
Trait Implementations§
Source§impl Clone for CvssV3MappingNode
impl Clone for CvssV3MappingNode
Source§fn clone(&self) -> CvssV3MappingNode
fn clone(&self) -> CvssV3MappingNode
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 CvssV3MappingNode
impl Debug for CvssV3MappingNode
Source§impl<'de> Deserialize<'de> for CvssV3MappingNode
impl<'de> Deserialize<'de> for CvssV3MappingNode
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 CvssV3MappingNode
impl PartialEq for CvssV3MappingNode
Source§impl Serialize for CvssV3MappingNode
impl Serialize for CvssV3MappingNode
impl StructuralPartialEq for CvssV3MappingNode
Auto Trait Implementations§
impl Freeze for CvssV3MappingNode
impl RefUnwindSafe for CvssV3MappingNode
impl Send for CvssV3MappingNode
impl Sync for CvssV3MappingNode
impl Unpin for CvssV3MappingNode
impl UnwindSafe for CvssV3MappingNode
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