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 KmsHealth {
    /// Error is the honest reason readiness is false: no in-process KMS client, or no master key. Absent when ready.
    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
    pub error: Option<String>,
    /// Ready is whether a secret operation would actually succeed right now. These are exactly the two states in which the secret operations refuse.
    #[serde(rename = "ready", skip_serializing_if = "Option::is_none")]
    pub ready: Option<bool>,
    /// Service names the subsystem answering, `kms`.
    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
    pub service: Option<String>,
    /// Signing reports whether signing keys are configured. Absent when there is no in-process client to ask.
    #[serde(rename = "signing", skip_serializing_if = "Option::is_none")]
    pub signing: Option<bool>,
    /// Status is `ok` or `degraded`, the one-word form of Ready.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl KmsHealth {
    pub fn new() -> KmsHealth {
        KmsHealth {
            error: None,
            ready: None,
            service: None,
            signing: None,
            status: None,
        }
    }
}