openapi_github/models/
codespace_export_details.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/// CodespaceExportDetails : An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodespaceExportDetails {
17    /// State of the latest export
18    #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub state: Option<Option<String>>,
20    /// Completion time of the last export operation
21    #[serde(rename = "completed_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub completed_at: Option<Option<String>>,
23    /// Name of the exported branch
24    #[serde(rename = "branch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub branch: Option<Option<String>>,
26    /// Git commit SHA of the exported branch
27    #[serde(rename = "sha", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub sha: Option<Option<String>>,
29    /// Id for the export details
30    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31    pub id: Option<String>,
32    /// Url for fetching export details
33    #[serde(rename = "export_url", skip_serializing_if = "Option::is_none")]
34    pub export_url: Option<String>,
35    /// Web url for the exported branch
36    #[serde(rename = "html_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
37    pub html_url: Option<Option<String>>,
38}
39
40impl CodespaceExportDetails {
41    /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest
42    pub fn new() -> CodespaceExportDetails {
43        CodespaceExportDetails {
44            state: None,
45            completed_at: None,
46            branch: None,
47            sha: None,
48            id: None,
49            export_url: None,
50            html_url: None,
51        }
52    }
53}
54