openapi_github/models/
pull_request_simple__links.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 PullRequestSimpleLinks {
16    #[serde(rename = "comments")]
17    pub comments: Box<models::Link>,
18    #[serde(rename = "commits")]
19    pub commits: Box<models::Link>,
20    #[serde(rename = "statuses")]
21    pub statuses: Box<models::Link>,
22    #[serde(rename = "html")]
23    pub html: Box<models::Link>,
24    #[serde(rename = "issue")]
25    pub issue: Box<models::Link>,
26    #[serde(rename = "review_comments")]
27    pub review_comments: Box<models::Link>,
28    #[serde(rename = "review_comment")]
29    pub review_comment: Box<models::Link>,
30    #[serde(rename = "self")]
31    pub param_self: Box<models::Link>,
32}
33
34impl PullRequestSimpleLinks {
35    pub fn new(comments: models::Link, commits: models::Link, statuses: models::Link, html: models::Link, issue: models::Link, review_comments: models::Link, review_comment: models::Link, param_self: models::Link) -> PullRequestSimpleLinks {
36        PullRequestSimpleLinks {
37            comments: Box::new(comments),
38            commits: Box::new(commits),
39            statuses: Box::new(statuses),
40            html: Box::new(html),
41            issue: Box::new(issue),
42            review_comments: Box::new(review_comments),
43            review_comment: Box::new(review_comment),
44            param_self: Box::new(param_self),
45        }
46    }
47}
48