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 ProfileResponse {
    /// KeyMetrics are the org's OWN numbers behind those signals — never another org's, and never a platform aggregate.
    #[serde(rename = "keyMetrics", skip_serializing_if = "Option::is_none")]
    pub key_metrics: Option<Box<models::ProfileMetrics>>,
    /// Signals is what was observed of the org right now, one boolean per probe. A probe that could not be run reports FALSE, not absent — the shape is stable so a caller never has to tell a missing key from a negative answer, and the cost is that \"not observed\" and \"not there\" look alike here. Keys are the probe names, including the `module:<name>` and `connected:<provider>` families.
    #[serde(rename = "signals", skip_serializing_if = "Option::is_none")]
    pub signals: Option<std::collections::HashMap<String, bool>>,
    /// Stage is how far the business itself has got — formed, launched, activated or scaling — decided purely from the signals below, and by what the org has ACHIEVED rather than what it has configured. It reads the STRONGEST evidence present, so money of record makes an org scaling even if an earlier rung's signal was never observed. It is unrelated to checklist progress.
    #[serde(rename = "stage", skip_serializing_if = "Option::is_none")]
    pub stage: Option<String>,
}

impl ProfileResponse {
    pub fn new() -> ProfileResponse {
        ProfileResponse {
            key_metrics: None,
            signals: None,
            stage: None,
        }
    }
}