pub fn load_cvss_v3_mapping_from_file<P: AsRef<Path>>(
path: P,
) -> Result<CvssV3Mapping, Box<dyn Error>>Expand description
Loads and deserializes a CVSS v3 mapping from a JSON file
§Arguments
path- Path to the CVSS v3 mapping JSON file
§Errors
Returns an error if the file cannot be read or the JSON is invalid
§Example
use bugcrowd_vrt::load_cvss_v3_mapping_from_file;
let mapping = load_cvss_v3_mapping_from_file("cvss_v3.json")
.expect("Failed to load CVSS v3 mapping");
println!("Loaded {} root nodes", mapping.content.len());