cyclonedx_rust/component/
swid.rs

1use crate::common::attached_text::AttachedTextType;
2use derive_builder::Builder;
3use serde::{Deserialize, Serialize};
4use yaserde_derive::{YaDeserialize, YaSerialize};
5
6#[derive(
7    Clone, Default, Builder, PartialEq, Debug, Serialize, Deserialize, YaSerialize, YaDeserialize,
8)]
9pub struct SwidType {
10    #[serde(rename = "tagId")]
11    #[yaserde(rename = "tagId", attribute)]
12    pub tag_id: String,
13
14    #[yaserde(attribute)]
15    pub name: String,
16
17    #[yaserde(attribute)]
18    pub version: Option<String>,
19
20    #[serde(rename = "tagVersion")]
21    #[yaserde(rename = "tagVersion", attribute)]
22    pub tag_version: Option<i32>,
23
24    #[yaserde(attribute)]
25    pub patch: Option<bool>,
26
27    pub text: Option<AttachedTextType>,
28    pub url: Option<String>,
29}