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 Category {
    /// Brands are the brands whose console shows this category. Absent means every brand.
    #[serde(rename = "brands", skip_serializing_if = "Option::is_none")]
    pub brands: Option<Vec<String>>,
    /// ID is the stable slug this category is addressed by, e.g. \"observe\".
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Label is the display name, e.g. \"Observe\".
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    /// Order is where the category sits among its siblings, ascending.
    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
    pub order: Option<i32>,
    /// Owner is the org this category belongs to: the platform's own org for a category every tenant sees, or your org for one you added. It tells a console which rows it may offer to edit.
    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    /// Summary is the one line describing what the category groups, shown as the header copy on its landing page.
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    /// Taxa are the products filed under this category, in display order.
    #[serde(rename = "taxa", skip_serializing_if = "Option::is_none")]
    pub taxa: Option<Vec<models::Taxon>>,
}

impl Category {
    pub fn new() -> Category {
        Category {
            brands: None,
            id: None,
            label: None,
            order: None,
            owner: None,
            summary: None,
            taxa: None,
        }
    }
}