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 WebhooksPullRequest5Links {
    #[serde(rename = "comments")]
    pub comments: Box<models::Link>,
    #[serde(rename = "commits")]
    pub commits: Box<models::Link>,
    #[serde(rename = "html")]
    pub html: Box<models::Link>,
    #[serde(rename = "issue")]
    pub issue: Box<models::Link>,
    #[serde(rename = "review_comment")]
    pub review_comment: Box<models::Link>,
    #[serde(rename = "review_comments")]
    pub review_comments: Box<models::Link>,
    #[serde(rename = "self")]
    pub param_self: Box<models::Link>,
    #[serde(rename = "statuses")]
    pub statuses: Box<models::Link>,
}

impl WebhooksPullRequest5Links {
    pub fn new(comments: models::Link, commits: models::Link, html: models::Link, issue: models::Link, review_comment: models::Link, review_comments: models::Link, param_self: models::Link, statuses: models::Link) -> WebhooksPullRequest5Links {
        WebhooksPullRequest5Links {
            comments: Box::new(comments),
            commits: Box::new(commits),
            html: Box::new(html),
            issue: Box::new(issue),
            review_comment: Box::new(review_comment),
            review_comments: Box::new(review_comments),
            param_self: Box::new(param_self),
            statuses: Box::new(statuses),
        }
    }
}