nvd-cwe 0.1.0

A rust implementation of the nvd-cwe.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::structured_text::StructuredTextType;
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct Notes {
  #[serde(rename(deserialize = "$value"))]
  pub notes: Vec<Note>,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct Note {
  #[serde(rename(deserialize = "@Type"))]
  pub r#type: Option<String>,
  #[serde(rename(deserialize = "$value"))]
  pub content: Vec<StructuredTextType>,
}