hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 StarterKit {
    /// groups the kit in the gallery browser (\"Portfolio\", \"SaaS\")
    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
    pub category: Option<String>,
    /// live demo (<slug>.hanzo.app), when deployed
    #[serde(rename = "demo", skip_serializing_if = "Option::is_none")]
    pub demo: Option<String>,
    /// the browse-card blurb
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// the highlights the card lists, at most 32
    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
    pub features: Option<Vec<String>>,
    /// the stack the kit is built on (\"Next.js 14.2 + TS\")
    #[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
    pub framework: Option<String>,
    /// owner of a PRIVATE template; empty in the public catalog
    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
    pub org: Option<String>,
    /// the still image the browse card renders
    #[serde(rename = "preview", skip_serializing_if = "Option::is_none")]
    pub preview: Option<String>,
    /// Rating is public-gallery curation, on the same terms as Tier: catalog-only, never accepted from a request, absent on a customer's own kit.
    #[serde(rename = "rating", skip_serializing_if = "Option::is_none")]
    pub rating: Option<f64>,
    /// the kit's identity — lowercase alphanumeric with dashes, max 40
    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
    /// the repository the kit is forked from
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Tier is public-gallery curation, carried verbatim from the embedded catalog. No request can set it — neither write body has the field and neither builds a kit carrying one — so it is absent on every customer-published kit.
    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
    pub tier: Option<i32>,
    /// display name
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// what the kit is for, in a phrase
    #[serde(rename = "useCase", skip_serializing_if = "Option::is_none")]
    pub use_case: Option<String>,
    /// the shapes this template ships in
    #[serde(rename = "variants", skip_serializing_if = "Option::is_none")]
    pub variants: Option<Vec<models::Variant>>,
}

impl StarterKit {
    pub fn new() -> StarterKit {
        StarterKit {
            category: None,
            demo: None,
            description: None,
            features: None,
            framework: None,
            org: None,
            preview: None,
            rating: None,
            slug: None,
            source: None,
            tier: None,
            title: None,
            use_case: None,
            variants: None,
        }
    }
}