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