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 O11yPeriodO11yErrorWithSpan {
    /// ErrorID is the exception instance id.
    #[serde(rename = "errorId", skip_serializing_if = "Option::is_none")]
    pub error_id: Option<String>,
    /// ExceptionEscaped marks an exception that escaped its span uncaught.
    #[serde(rename = "exceptionEscaped", skip_serializing_if = "Option::is_none")]
    pub exception_escaped: Option<bool>,
    /// ExceptionMsg is the exception's message.
    #[serde(rename = "exceptionMessage", skip_serializing_if = "Option::is_none")]
    pub exception_message: Option<String>,
    /// ExceptionStacktrace is the captured stack trace.
    #[serde(rename = "exceptionStacktrace", skip_serializing_if = "Option::is_none")]
    pub exception_stacktrace: Option<String>,
    /// ExceptionType is the exception's type.
    #[serde(rename = "exceptionType", skip_serializing_if = "Option::is_none")]
    pub exception_type: Option<String>,
    /// GroupID is the exception group it belongs to.
    #[serde(rename = "groupID", skip_serializing_if = "Option::is_none")]
    pub group_id: Option<String>,
    /// ServiceName is the service that reported it.
    #[serde(rename = "serviceName", skip_serializing_if = "Option::is_none")]
    pub service_name: Option<String>,
    /// SpanID is the span it happened on.
    #[serde(rename = "spanID", skip_serializing_if = "Option::is_none")]
    pub span_id: Option<String>,
    /// Timestamp is when it happened.
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
    /// TraceID is the trace the span belonged to.
    #[serde(rename = "traceID", skip_serializing_if = "Option::is_none")]
    pub trace_id: Option<String>,
}

impl O11yPeriodO11yErrorWithSpan {
    pub fn new() -> O11yPeriodO11yErrorWithSpan {
        O11yPeriodO11yErrorWithSpan {
            error_id: None,
            exception_escaped: None,
            exception_message: None,
            exception_stacktrace: None,
            exception_type: None,
            group_id: None,
            service_name: None,
            span_id: None,
            timestamp: None,
            trace_id: None,
        }
    }
}