Skip to main content

hanzo_client/models/
pages_build_config.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 PagesBuildConfig {
16    /// BuildCommand is what Cloudflare runs to build the site (\"npm run build\"). Omitted means no build step: the repository is published as it stands.
17    #[serde(rename = "build_command", skip_serializing_if = "Option::is_none")]
18    pub build_command: Option<String>,
19    /// DestinationDir is the directory the build leaves the site in (\"dist\"), relative to RootDir. It is what gets served.
20    #[serde(rename = "destination_dir", skip_serializing_if = "Option::is_none")]
21    pub destination_dir: Option<String>,
22    /// RootDir is where in the repository the build runs, for a project that is not at the repository root. Omitted means the root.
23    #[serde(rename = "root_dir", skip_serializing_if = "Option::is_none")]
24    pub root_dir: Option<String>,
25}
26
27impl PagesBuildConfig {
28    pub fn new() -> PagesBuildConfig {
29        PagesBuildConfig {
30            build_command: None,
31            destination_dir: None,
32            root_dir: None,
33        }
34    }
35}
36