Skip to main content

hanzo_client/models/
github_pages_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
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 GithubPagesView {
16    /// BuildType is the builder in use: \"legacy\" (branch source) or \"workflow\".
17    #[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
18    pub build_type: Option<String>,
19    /// CNAME is the custom domain, absent when none is set.
20    #[serde(rename = "cname", skip_serializing_if = "Option::is_none")]
21    pub cname: Option<String>,
22    /// Custom404 is whether the repo ships its own 404 page.
23    #[serde(rename = "custom404", skip_serializing_if = "Option::is_none")]
24    pub custom404: Option<bool>,
25    /// HTTPSEnforced is GitHub's enforce-HTTPS bit.
26    #[serde(rename = "httpsEnforced", skip_serializing_if = "Option::is_none")]
27    pub https_enforced: Option<bool>,
28    /// Repo is the repository the site belongs to.
29    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
30    pub repo: Option<String>,
31    /// Source is the branch + path the site builds from. Absent under \"workflow\".
32    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
33    pub source: Option<Box<models::GithubPagesSource>>,
34    /// Status is GitHub's build state: \"built\", \"building\" or \"errored\". Absent before the first build.
35    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
36    pub status: Option<String>,
37    /// URL is the live site (GitHub's html_url).
38    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
39    pub url: Option<String>,
40}
41
42impl GithubPagesView {
43    pub fn new() -> GithubPagesView {
44        GithubPagesView {
45            build_type: None,
46            cname: None,
47            custom404: None,
48            https_enforced: None,
49            repo: None,
50            source: None,
51            status: None,
52            url: None,
53        }
54    }
55}
56