openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CodespaceExportDetails : An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CodespaceExportDetails {
    /// State of the latest export
    #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub state: Option<Option<String>>,
    /// Completion time of the last export operation
    #[serde(rename = "completed_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub completed_at: Option<Option<String>>,
    /// Name of the exported branch
    #[serde(rename = "branch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub branch: Option<Option<String>>,
    /// Git commit SHA of the exported branch
    #[serde(rename = "sha", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub sha: Option<Option<String>>,
    /// Id for the export details
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Url for fetching export details
    #[serde(rename = "export_url", skip_serializing_if = "Option::is_none")]
    pub export_url: Option<String>,
    /// Web url for the exported branch
    #[serde(rename = "html_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub html_url: Option<Option<String>>,
}

impl CodespaceExportDetails {
    /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest
    pub fn new() -> CodespaceExportDetails {
        CodespaceExportDetails {
            state: None,
            completed_at: None,
            branch: None,
            sha: None,
            id: None,
            export_url: None,
            html_url: None,
        }
    }
}