openapi_github/models/
repo_codespaces_secret.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/// RepoCodespacesSecret : Set repository secrets for GitHub Codespaces.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RepoCodespacesSecret {
17    /// The name of the secret.
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "created_at")]
21    pub created_at: String,
22    #[serde(rename = "updated_at")]
23    pub updated_at: String,
24}
25
26impl RepoCodespacesSecret {
27    /// Set repository secrets for GitHub Codespaces.
28    pub fn new(name: String, created_at: String, updated_at: String) -> RepoCodespacesSecret {
29        RepoCodespacesSecret {
30            name,
31            created_at,
32            updated_at,
33        }
34    }
35}
36