openapi_github/models/
dependency_graph_spdx_sbom_sbom_packages_inner.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DependencyGraphSpdxSbomSbomPackagesInner {
16    /// A unique SPDX identifier for the package.
17    #[serde(rename = "SPDXID", skip_serializing_if = "Option::is_none")]
18    pub spdxid: Option<String>,
19    /// The name of the package.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// The version of the package. If the package does not have an exact version specified, a version range is given.
23    #[serde(rename = "versionInfo", skip_serializing_if = "Option::is_none")]
24    pub version_info: Option<String>,
25    /// The location where the package can be downloaded, or NOASSERTION if this has not been determined.
26    #[serde(rename = "downloadLocation", skip_serializing_if = "Option::is_none")]
27    pub download_location: Option<String>,
28    /// Whether the package's file content has been subjected to analysis during the creation of the SPDX document.
29    #[serde(rename = "filesAnalyzed", skip_serializing_if = "Option::is_none")]
30    pub files_analyzed: Option<bool>,
31    /// The license of the package as determined while creating the SPDX document.
32    #[serde(rename = "licenseConcluded", skip_serializing_if = "Option::is_none")]
33    pub license_concluded: Option<String>,
34    /// The license of the package as declared by its author, or NOASSERTION if this information was not available when the SPDX document was created.
35    #[serde(rename = "licenseDeclared", skip_serializing_if = "Option::is_none")]
36    pub license_declared: Option<String>,
37    /// The distribution source of this package, or NOASSERTION if this was not determined.
38    #[serde(rename = "supplier", skip_serializing_if = "Option::is_none")]
39    pub supplier: Option<String>,
40    #[serde(rename = "externalRefs", skip_serializing_if = "Option::is_none")]
41    pub external_refs: Option<Vec<models::DependencyGraphSpdxSbomSbomPackagesInnerExternalRefsInner>>,
42}
43
44impl DependencyGraphSpdxSbomSbomPackagesInner {
45    pub fn new() -> DependencyGraphSpdxSbomSbomPackagesInner {
46        DependencyGraphSpdxSbomSbomPackagesInner {
47            spdxid: None,
48            name: None,
49            version_info: None,
50            download_location: None,
51            files_analyzed: None,
52            license_concluded: None,
53            license_declared: None,
54            supplier: None,
55            external_refs: None,
56        }
57    }
58}
59