openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DependencyGraphSpdxSbomSbom {
    /// The SPDX identifier for the SPDX document.
    #[serde(rename = "SPDXID")]
    pub spdxid: String,
    /// The version of the SPDX specification that this document conforms to.
    #[serde(rename = "spdxVersion")]
    pub spdx_version: String,
    #[serde(rename = "creationInfo")]
    pub creation_info: Box<models::DependencyGraphSpdxSbomSbomCreationInfo>,
    /// The name of the SPDX document.
    #[serde(rename = "name")]
    pub name: String,
    /// The license under which the SPDX document is licensed.
    #[serde(rename = "dataLicense")]
    pub data_license: String,
    /// The name of the repository that the SPDX document describes.
    #[serde(rename = "documentDescribes")]
    pub document_describes: Vec<String>,
    /// The namespace for the SPDX document.
    #[serde(rename = "documentNamespace")]
    pub document_namespace: String,
    #[serde(rename = "packages")]
    pub packages: Vec<models::DependencyGraphSpdxSbomSbomPackagesInner>,
}

impl DependencyGraphSpdxSbomSbom {
    pub fn new(spdxid: String, spdx_version: String, creation_info: models::DependencyGraphSpdxSbomSbomCreationInfo, name: String, data_license: String, document_describes: Vec<String>, document_namespace: String, packages: Vec<models::DependencyGraphSpdxSbomSbomPackagesInner>) -> DependencyGraphSpdxSbomSbom {
        DependencyGraphSpdxSbomSbom {
            spdxid,
            spdx_version,
            creation_info: Box::new(creation_info),
            name,
            data_license,
            document_describes,
            document_namespace,
            packages,
        }
    }
}