openapi_github/models/
webhooks_repositories_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 WebhooksRepositoriesInner {
16    #[serde(rename = "full_name")]
17    pub full_name: String,
18    /// Unique identifier of the repository
19    #[serde(rename = "id")]
20    pub id: i32,
21    /// The name of the repository.
22    #[serde(rename = "name")]
23    pub name: String,
24    #[serde(rename = "node_id")]
25    pub node_id: String,
26    /// Whether the repository is private or public.
27    #[serde(rename = "private")]
28    pub private: bool,
29}
30
31impl WebhooksRepositoriesInner {
32    pub fn new(full_name: String, id: i32, name: String, node_id: String, private: bool) -> WebhooksRepositoriesInner {
33        WebhooksRepositoriesInner {
34            full_name,
35            id,
36            name,
37            node_id,
38            private,
39        }
40    }
41}
42