Skip to main content

hanzo_client/models/
replace_kit_in.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 ReplaceKitIn {
16    /// Category groups the kit in the gallery browser.
17    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
18    pub category: Option<String>,
19    /// Demo is the deployed site itself, when there is one.
20    #[serde(rename = "demo", skip_serializing_if = "Option::is_none")]
21    pub demo: Option<String>,
22    /// Description is the browse-card blurb, max 4096 characters.
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// Features are the highlights the card lists, at most 32.
26    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
27    pub features: Option<Vec<String>>,
28    /// Framework is the stack the kit is built on (\"Next.js 14\").
29    #[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
30    pub framework: Option<String>,
31    /// Preview is the still image the browse card renders, max 4096 characters.
32    #[serde(rename = "preview", skip_serializing_if = "Option::is_none")]
33    pub preview: Option<String>,
34    /// Slug is the kit to replace, from the path.
35    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
36    pub slug: Option<String>,
37    /// Source is the repository the kit is forked from, max 4096 characters.
38    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
39    pub source: Option<String>,
40    /// Title is the display name. Required, max 200 characters.
41    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
42    pub title: Option<String>,
43    /// UseCase is what the kit is for, in a phrase.
44    #[serde(rename = "useCase", skip_serializing_if = "Option::is_none")]
45    pub use_case: Option<String>,
46    /// Variants are the shapes this kit ships in, at most 32; the fork picks one.
47    #[serde(rename = "variants", skip_serializing_if = "Option::is_none")]
48    pub variants: Option<Vec<models::Variant>>,
49}
50
51impl ReplaceKitIn {
52    pub fn new() -> ReplaceKitIn {
53        ReplaceKitIn {
54            category: None,
55            demo: None,
56            description: None,
57            features: None,
58            framework: None,
59            preview: None,
60            slug: None,
61            source: None,
62            title: None,
63            use_case: None,
64            variants: None,
65        }
66    }
67}
68