openapi_github/models/
integration_permissions.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/// IntegrationPermissions : The set of permissions for the GitHub app
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IntegrationPermissions {
17    #[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
18    pub issues: Option<String>,
19    #[serde(rename = "checks", skip_serializing_if = "Option::is_none")]
20    pub checks: Option<String>,
21    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
22    pub metadata: Option<String>,
23    #[serde(rename = "contents", skip_serializing_if = "Option::is_none")]
24    pub contents: Option<String>,
25    #[serde(rename = "deployments", skip_serializing_if = "Option::is_none")]
26    pub deployments: Option<String>,
27}
28
29impl IntegrationPermissions {
30    /// The set of permissions for the GitHub app
31    pub fn new() -> IntegrationPermissions {
32        IntegrationPermissions {
33            issues: None,
34            checks: None,
35            metadata: None,
36            contents: None,
37            deployments: None,
38        }
39    }
40}
41