openapi_github/models/
personal_access_token_request_permissions_added.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/// PersonalAccessTokenRequestPermissionsAdded : New requested permissions, categorized by type of permission.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PersonalAccessTokenRequestPermissionsAdded {
17    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
18    pub organization: Option<std::collections::HashMap<String, String>>,
19    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
20    pub repository: Option<std::collections::HashMap<String, String>>,
21    #[serde(rename = "other", skip_serializing_if = "Option::is_none")]
22    pub other: Option<std::collections::HashMap<String, String>>,
23}
24
25impl PersonalAccessTokenRequestPermissionsAdded {
26    /// New requested permissions, categorized by type of permission.
27    pub fn new() -> PersonalAccessTokenRequestPermissionsAdded {
28        PersonalAccessTokenRequestPermissionsAdded {
29            organization: None,
30            repository: None,
31            other: None,
32        }
33    }
34}
35