openapi_github/models/
codespace_export_details.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodespaceExportDetails {
17 #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19 pub state: Option<Option<String>>,
20 #[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 #[serde(rename = "branch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25 pub branch: Option<Option<String>>,
26 #[serde(rename = "sha", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28 pub sha: Option<Option<String>>,
29 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31 pub id: Option<String>,
32 #[serde(rename = "export_url", skip_serializing_if = "Option::is_none")]
34 pub export_url: Option<String>,
35 #[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 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