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 GithubPagesUpdateReq {
    /// Branch switches the legacy source branch. Empty leaves the source alone.
    #[serde(rename = "branch", skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    /// BuildType switches the builder: \"legacy\" or \"workflow\". Empty leaves it.
    #[serde(rename = "buildType", skip_serializing_if = "Option::is_none")]
    pub build_type: Option<String>,
    /// CNAME is the custom domain. Omit to leave it alone, \"\" to clear it, or a valid FQDN to set it.
    #[serde(rename = "cname", skip_serializing_if = "Option::is_none")]
    pub cname: Option<String>,
    /// HTTPSEnforced toggles GitHub's enforce-HTTPS bit. Omit to leave it alone.
    #[serde(rename = "httpsEnforced", skip_serializing_if = "Option::is_none")]
    pub https_enforced: Option<bool>,
    /// Path is the source directory to pair with Branch: \"/\" (the default) or \"/docs\". Read only when Branch is given.
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// Repo is the repository, from the :repo path segment.
    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
    pub repo: Option<String>,
}

impl GithubPagesUpdateReq {
    pub fn new() -> GithubPagesUpdateReq {
        GithubPagesUpdateReq {
            branch: None,
            build_type: None,
            cname: None,
            https_enforced: None,
            path: None,
            repo: None,
        }
    }
}