hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}