hanzo_client/models/projects_deploy_site.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 ProjectsDeploySite {
16 /// Files is the whole site, inline — every file it consists of. It REPLACES what is there rather than merging, so an omitted file is a deleted one.
17 #[serde(rename = "files", skip_serializing_if = "Option::is_none")]
18 pub files: Option<Vec<models::ProjectsFile>>,
19 /// Name is the site's display name.
20 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21 pub name: Option<String>,
22 /// Slug is the handle and public host label to publish under.
23 #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
24 pub slug: Option<String>,
25}
26
27impl ProjectsDeploySite {
28 pub fn new() -> ProjectsDeploySite {
29 ProjectsDeploySite {
30 files: None,
31 name: None,
32 slug: None,
33 }
34 }
35}
36