Skip to main content

hanzo_client/models/
pages_project_create.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 PagesProjectCreate {
16    /// BuildConfig says how to build the site. Omitted means no build step.
17    #[serde(rename = "build_config", skip_serializing_if = "Option::is_none")]
18    pub build_config: Option<Box<models::PagesBuildConfig>>,
19    /// DeploymentConfigs carries the preview and production runtime configs — the bindings and variables the built site's functions run with.
20    #[serde(rename = "deployment_configs", skip_serializing_if = "Option::is_none")]
21    pub deployment_configs: Option<Box<models::PagesDeploymentConfigs>>,
22    /// Name is the project name, and it is also the address: the site answers at <name>.pages.dev. Cloudflare will not rename a project afterwards.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// ProductionBranch is which git branch builds to production; every other branch builds a preview. Omitted leaves Cloudflare's own default.
26    #[serde(rename = "production_branch", skip_serializing_if = "Option::is_none")]
27    pub production_branch: Option<String>,
28}
29
30impl PagesProjectCreate {
31    pub fn new() -> PagesProjectCreate {
32        PagesProjectCreate {
33            build_config: None,
34            deployment_configs: None,
35            name: None,
36            production_branch: None,
37        }
38    }
39}
40