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 PagesBuildConfig {
    /// BuildCommand is what Cloudflare runs to build the site (\"npm run build\"). Omitted means no build step: the repository is published as it stands.
    #[serde(rename = "build_command", skip_serializing_if = "Option::is_none")]
    pub build_command: Option<String>,
    /// DestinationDir is the directory the build leaves the site in (\"dist\"), relative to RootDir. It is what gets served.
    #[serde(rename = "destination_dir", skip_serializing_if = "Option::is_none")]
    pub destination_dir: Option<String>,
    /// RootDir is where in the repository the build runs, for a project that is not at the repository root. Omitted means the root.
    #[serde(rename = "root_dir", skip_serializing_if = "Option::is_none")]
    pub root_dir: Option<String>,
}

impl PagesBuildConfig {
    pub fn new() -> PagesBuildConfig {
        PagesBuildConfig {
            build_command: None,
            destination_dir: None,
            root_dir: None,
        }
    }
}