openapi_github/models/key_simple.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/// KeySimple : Key Simple
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct KeySimple {
17 #[serde(rename = "id")]
18 pub id: i32,
19 #[serde(rename = "key")]
20 pub key: String,
21}
22
23impl KeySimple {
24 /// Key Simple
25 pub fn new(id: i32, key: String) -> KeySimple {
26 KeySimple {
27 id,
28 key,
29 }
30 }
31}
32