pub fn load_vrt_from_file<P: AsRef<Path>>(
path: P,
) -> Result<VrtTaxonomy, Box<dyn Error>>Expand description
Loads and deserializes a VRT taxonomy from a JSON file
§Arguments
path- Path to the VRT JSON file
§Errors
Returns an error if the file cannot be read or the JSON is invalid
§Example
use bugcrowd_vrt::load_vrt_from_file;
let taxonomy = load_vrt_from_file("vrt.json").expect("Failed to load VRT");
println!("Loaded {} categories", taxonomy.len());