openapi_github/models/
branch_restriction_policy_apps_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 BranchRestrictionPolicyAppsInner {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
19    pub slug: Option<String>,
20    #[serde(rename = "node_id", skip_serializing_if = "Option::is_none")]
21    pub node_id: Option<String>,
22    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
23    pub owner: Option<Box<models::BranchRestrictionPolicyAppsInnerOwner>>,
24    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25    pub name: Option<String>,
26    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27    pub description: Option<String>,
28    #[serde(rename = "external_url", skip_serializing_if = "Option::is_none")]
29    pub external_url: Option<String>,
30    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
31    pub html_url: Option<String>,
32    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
33    pub created_at: Option<String>,
34    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
35    pub updated_at: Option<String>,
36    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
37    pub permissions: Option<Box<models::BranchRestrictionPolicyAppsInnerPermissions>>,
38    #[serde(rename = "events", skip_serializing_if = "Option::is_none")]
39    pub events: Option<Vec<String>>,
40}
41
42impl BranchRestrictionPolicyAppsInner {
43    pub fn new() -> BranchRestrictionPolicyAppsInner {
44        BranchRestrictionPolicyAppsInner {
45            id: None,
46            slug: None,
47            node_id: None,
48            owner: None,
49            name: None,
50            description: None,
51            external_url: None,
52            html_url: None,
53            created_at: None,
54            updated_at: None,
55            permissions: None,
56            events: None,
57        }
58    }
59}
60