Skip to main content

hanzo_client/models/
variant.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 Variant {
16    /// only when it differs from the template's
17    #[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
18    pub framework: Option<String>,
19    /// selector, unique within the template (\"react\", \"grid-3-fluid\")
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// the axis it varies: format | page | theme
23    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
24    pub kind: Option<String>,
25    /// human label for the picker
26    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
27    pub label: Option<String>,
28    /// the repository this shape is forked from; the synthesized default shape carries the template's own
29    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
30    pub source: Option<String>,
31}
32
33impl Variant {
34    pub fn new() -> Variant {
35        Variant {
36            framework: None,
37            id: None,
38            kind: None,
39            label: None,
40            source: None,
41        }
42    }
43}
44