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 WebhookRegistryPackageUpdatedRegistryPackage {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "description", deserialize_with = "Option::deserialize")]
    pub description: Option<serde_json::Value>,
    #[serde(rename = "ecosystem")]
    pub ecosystem: String,
    #[serde(rename = "html_url")]
    pub html_url: String,
    #[serde(rename = "id")]
    pub id: i32,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "namespace")]
    pub namespace: String,
    #[serde(rename = "owner")]
    pub owner: Box<models::WebhookRegistryPackagePublishedRegistryPackageOwner>,
    #[serde(rename = "package_type")]
    pub package_type: String,
    #[serde(rename = "package_version")]
    pub package_version: Box<models::WebhookRegistryPackageUpdatedRegistryPackagePackageVersion>,
    #[serde(rename = "registry", deserialize_with = "Option::deserialize")]
    pub registry: Option<serde_json::Value>,
    #[serde(rename = "updated_at")]
    pub updated_at: String,
}

impl WebhookRegistryPackageUpdatedRegistryPackage {
    pub fn new(created_at: String, description: Option<serde_json::Value>, ecosystem: String, html_url: String, id: i32, name: String, namespace: String, owner: models::WebhookRegistryPackagePublishedRegistryPackageOwner, package_type: String, package_version: models::WebhookRegistryPackageUpdatedRegistryPackagePackageVersion, registry: Option<serde_json::Value>, updated_at: String) -> WebhookRegistryPackageUpdatedRegistryPackage {
        WebhookRegistryPackageUpdatedRegistryPackage {
            created_at,
            description,
            ecosystem,
            html_url,
            id,
            name,
            namespace,
            owner: Box::new(owner),
            package_type,
            package_version: Box::new(package_version),
            registry,
            updated_at,
        }
    }
}