openapi_github/models/
actions_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/// ActionsSecret : Set secrets for GitHub Actions.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionsSecret {
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 ActionsSecret {
27    /// Set secrets for GitHub Actions.
28    pub fn new(name: String, created_at: String, updated_at: String) -> ActionsSecret {
29        ActionsSecret {
30            name,
31            created_at,
32            updated_at,
33        }
34    }
35}
36