openapi_github/models/
pages_deployment_status.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PagesDeploymentStatus {
16    /// The current status of the deployment.
17    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
18    pub status: Option<Status>,
19}
20
21impl PagesDeploymentStatus {
22    pub fn new() -> PagesDeploymentStatus {
23        PagesDeploymentStatus {
24            status: None,
25        }
26    }
27}
28/// The current status of the deployment.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Status {
31    #[serde(rename = "deployment_in_progress")]
32    DeploymentInProgress,
33    #[serde(rename = "syncing_files")]
34    SyncingFiles,
35    #[serde(rename = "finished_file_sync")]
36    FinishedFileSync,
37    #[serde(rename = "updating_pages")]
38    UpdatingPages,
39    #[serde(rename = "purging_cdn")]
40    PurgingCdn,
41    #[serde(rename = "deployment_cancelled")]
42    DeploymentCancelled,
43    #[serde(rename = "deployment_failed")]
44    DeploymentFailed,
45    #[serde(rename = "deployment_content_failed")]
46    DeploymentContentFailed,
47    #[serde(rename = "deployment_attempt_error")]
48    DeploymentAttemptError,
49    #[serde(rename = "deployment_lost")]
50    DeploymentLost,
51    #[serde(rename = "succeed")]
52    Succeed,
53}
54
55impl Default for Status {
56    fn default() -> Status {
57        Self::DeploymentInProgress
58    }
59}
60