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 OnboardResp {
    /// AccessKey is the identifier of the org-scoped credential provisioning minted with the organization. Present on a first run that actually minted one.
    #[serde(rename = "accessKey", skip_serializing_if = "Option::is_none")]
    pub access_key: Option<String>,
    /// AccessSecret is that credential's confidential half, returned ONCE — on the response that mints it and never again. IAM keeps only its argon2id digest and blanks the plaintext, so this is the single moment it exists in a form its owner can read; a replay of the same provision re-reveals nothing.
    #[serde(rename = "accessSecret", skip_serializing_if = "Option::is_none")]
    pub access_secret: Option<String>,
    /// Additional is true when the caller already had an organization and this one was created WITHOUT moving them into it — they reach it via the org switcher.
    #[serde(rename = "additional", skip_serializing_if = "Option::is_none")]
    pub additional: Option<bool>,
    /// DisplayName is the organization's human name.
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    /// Org is the created organization's slug, which is what X-Org-Id carries.
    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
    pub org: Option<String>,
}

impl OnboardResp {
    pub fn new() -> OnboardResp {
        OnboardResp {
            access_key: None,
            access_secret: None,
            additional: None,
            display_name: None,
            org: None,
        }
    }
}