openapi_github/models/
gist_history.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/// GistHistory : Gist History
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GistHistory {
17    #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub user: Option<Option<Box<models::NullableSimpleUser>>>,
19    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
20    pub version: Option<String>,
21    #[serde(rename = "committed_at", skip_serializing_if = "Option::is_none")]
22    pub committed_at: Option<String>,
23    #[serde(rename = "change_status", skip_serializing_if = "Option::is_none")]
24    pub change_status: Option<Box<models::GistHistoryChangeStatus>>,
25    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
26    pub url: Option<String>,
27}
28
29impl GistHistory {
30    /// Gist History
31    pub fn new() -> GistHistory {
32        GistHistory {
33            user: None,
34            version: None,
35            committed_at: None,
36            change_status: None,
37            url: None,
38        }
39    }
40}
41