1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GithubPagesView {
/// BuildType is the builder in use: \"legacy\" (branch source) or \"workflow\".
#[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
pub build_type: Option<String>,
/// CNAME is the custom domain, absent when none is set.
#[serde(rename = "cname", skip_serializing_if = "Option::is_none")]
pub cname: Option<String>,
/// Custom404 is whether the repo ships its own 404 page.
#[serde(rename = "custom404", skip_serializing_if = "Option::is_none")]
pub custom404: Option<bool>,
/// HTTPSEnforced is GitHub's enforce-HTTPS bit.
#[serde(rename = "httpsEnforced", skip_serializing_if = "Option::is_none")]
pub https_enforced: Option<bool>,
/// Repo is the repository the site belongs to.
#[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
pub repo: Option<String>,
/// Source is the branch + path the site builds from. Absent under \"workflow\".
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<Box<models::GithubPagesSource>>,
/// Status is GitHub's build state: \"built\", \"building\" or \"errored\". Absent before the first build.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// URL is the live site (GitHub's html_url).
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
impl GithubPagesView {
pub fn new() -> GithubPagesView {
GithubPagesView {
build_type: None,
cname: None,
custom404: None,
https_enforced: None,
repo: None,
source: None,
status: None,
url: None,
}
}
}