openapi_github/models/codespaces_permissions_check_for_devcontainer.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/// CodespacesPermissionsCheckForDevcontainer : Permission check result for a given devcontainer config.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodespacesPermissionsCheckForDevcontainer {
17 /// Whether the user has accepted the permissions defined by the devcontainer config
18 #[serde(rename = "accepted")]
19 pub accepted: bool,
20}
21
22impl CodespacesPermissionsCheckForDevcontainer {
23 /// Permission check result for a given devcontainer config.
24 pub fn new(accepted: bool) -> CodespacesPermissionsCheckForDevcontainer {
25 CodespacesPermissionsCheckForDevcontainer {
26 accepted,
27 }
28 }
29}
30