load_cwe_mapping_from_reader

Function load_cwe_mapping_from_reader 

Source
pub fn load_cwe_mapping_from_reader<R: Read>(
    reader: R,
) -> Result<CweMapping, Error>
Expand description

Deserializes a CWE mapping from a reader

§Arguments

  • reader - Any type implementing io::Read containing JSON data

§Errors

Returns an error if reading fails or the JSON is invalid