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 O11yPeriodO11yErrorDetail {
    /// Code is the machine-readable code.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// Errors are further details, one message and its suggestions each.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<Vec<models::O11yPeriodO11yErrorItem>>,
    /// Message is the human-readable reason.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    /// Retry says when it is worth trying again, for errors that pass.
    #[serde(rename = "retry", skip_serializing_if = "Option::is_none")]
    pub retry: Option<Box<models::O11yPeriodO11yRetry>>,
    /// Suggestions say what to try instead.
    #[serde(rename = "suggestions", skip_serializing_if = "Option::is_none")]
    pub suggestions: Option<Vec<String>>,
    /// Type is the error's category, e.g. invalid_input, not_found.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// Url points at documentation for the error, when there is any.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

impl O11yPeriodO11yErrorDetail {
    pub fn new() -> O11yPeriodO11yErrorDetail {
        O11yPeriodO11yErrorDetail {
            code: None,
            errors: None,
            message: None,
            retry: None,
            suggestions: None,
            r#type: None,
            url: None,
        }
    }
}