openapi_github/models/
protected_branch_pull_request_review_dismissal_restrictions.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 ProtectedBranchPullRequestReviewDismissalRestrictions {
16    /// The list of users with review dismissal access.
17    #[serde(rename = "users", skip_serializing_if = "Option::is_none")]
18    pub users: Option<Vec<models::SimpleUser>>,
19    /// The list of teams with review dismissal access.
20    #[serde(rename = "teams", skip_serializing_if = "Option::is_none")]
21    pub teams: Option<Vec<models::Team>>,
22    /// The list of apps with review dismissal access.
23    #[serde(rename = "apps", skip_serializing_if = "Option::is_none")]
24    pub apps: Option<Vec<models::Integration>>,
25    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
26    pub url: Option<String>,
27    #[serde(rename = "users_url", skip_serializing_if = "Option::is_none")]
28    pub users_url: Option<String>,
29    #[serde(rename = "teams_url", skip_serializing_if = "Option::is_none")]
30    pub teams_url: Option<String>,
31}
32
33impl ProtectedBranchPullRequestReviewDismissalRestrictions {
34    pub fn new() -> ProtectedBranchPullRequestReviewDismissalRestrictions {
35        ProtectedBranchPullRequestReviewDismissalRestrictions {
36            users: None,
37            teams: None,
38            apps: None,
39            url: None,
40            users_url: None,
41            teams_url: None,
42        }
43    }
44}
45