openapi_github/models/
organization_fine_grained_permission.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/// OrganizationFineGrainedPermission : A fine-grained permission that protects organization resources.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrganizationFineGrainedPermission {
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "description")]
20    pub description: String,
21}
22
23impl OrganizationFineGrainedPermission {
24    /// A fine-grained permission that protects organization resources.
25    pub fn new(name: String, description: String) -> OrganizationFineGrainedPermission {
26        OrganizationFineGrainedPermission {
27            name,
28            description,
29        }
30    }
31}
32