pub struct Metric {
pub format: Option<String>,
pub scenarios: Vec<Scenario>,
pub cvss_v4_0: Option<Value>,
pub cvss_v3_1: Option<Value>,
pub cvss_v3_0: Option<Value>,
pub cvss_v2_0: Option<Value>,
pub other: Option<OtherMetric>,
}Expand description
This is impact type information (e.g. a text description, CVSSv2, CVSSv3, CVSSv4, etc.). Must contain: At least one entry, can be text, CVSSv2, CVSSv3, others may be added.
Fields§
§format: Option<String>Name of the scoring format. This provides a bit of future proofing. Additional properties are not prohibited, so this will support the inclusion of proprietary formats. It also provides an easy future conversion mechanism when future score formats become part of the schema. example: cvssV44, format = ‘cvssV44’, other = cvssV4_4 JSON object. In the future, the other properties can be converted to score properties when they become part of the schema.
scenarios: Vec<Scenario>Description of the scenarios this metrics object applies to. If no specific scenario is given, GENERAL is used as the default and applies when no more specific metric matches.
cvss_v4_0: Option<Value>§cvss_v3_1: Option<Value>§cvss_v3_0: Option<Value>§cvss_v2_0: Option<Value>§other: Option<OtherMetric>