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 O11yPeriodO11yFeature {
    /// DefaultVariant is the variant used when nothing overrides it.
    #[serde(rename = "defaultVariant", skip_serializing_if = "Option::is_none")]
    pub default_variant: Option<String>,
    /// Description says what the flag gates.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Kind is the flag's value kind, e.g. boolean.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Name is the flag's name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// ResolvedValue is the value resolved for the caller's org.
    #[serde(rename = "resolvedValue", skip_serializing_if = "Option::is_none")]
    pub resolved_value: Option<serde_json::Value>,
    /// Stage is the flag's lifecycle stage, e.g. stable.
    #[serde(rename = "stage", skip_serializing_if = "Option::is_none")]
    pub stage: Option<String>,
    /// Variants are the flag's possible values, by variant name.
    #[serde(rename = "variants", skip_serializing_if = "Option::is_none")]
    pub variants: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl O11yPeriodO11yFeature {
    pub fn new() -> O11yPeriodO11yFeature {
        O11yPeriodO11yFeature {
            default_variant: None,
            description: None,
            kind: None,
            name: None,
            resolved_value: None,
            stage: None,
            variants: None,
        }
    }
}