openapi_github/models/
minimal_repository_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MinimalRepositoryPermissions {
16    #[serde(rename = "admin", skip_serializing_if = "Option::is_none")]
17    pub admin: Option<bool>,
18    #[serde(rename = "maintain", skip_serializing_if = "Option::is_none")]
19    pub maintain: Option<bool>,
20    #[serde(rename = "push", skip_serializing_if = "Option::is_none")]
21    pub push: Option<bool>,
22    #[serde(rename = "triage", skip_serializing_if = "Option::is_none")]
23    pub triage: Option<bool>,
24    #[serde(rename = "pull", skip_serializing_if = "Option::is_none")]
25    pub pull: Option<bool>,
26}
27
28impl MinimalRepositoryPermissions {
29    pub fn new() -> MinimalRepositoryPermissions {
30        MinimalRepositoryPermissions {
31            admin: None,
32            maintain: None,
33            push: None,
34            triage: None,
35            pull: None,
36        }
37    }
38}
39