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 O11yPeriodO11yTraceSpanWindow {
    /// Columns names the fields each row carries, in row order.
    #[serde(rename = "columns", skip_serializing_if = "Option::is_none")]
    pub columns: Option<Vec<String>>,
    /// EndTimestampMillis is when it closes.
    #[serde(rename = "endTimestampMillis", skip_serializing_if = "Option::is_none")]
    pub end_timestamp_millis: Option<i32>,
    /// Events are the rows, each positionally matching Columns.
    #[serde(rename = "events", skip_serializing_if = "Option::is_none")]
    pub events: Option<Vec<Vec<serde_json::Value>>>,
    /// IsSubTree says the window is a subtree of the trace rather than the whole of it.
    #[serde(rename = "isSubTree", skip_serializing_if = "Option::is_none")]
    pub is_sub_tree: Option<bool>,
    /// StartTimestampMillis is when the window opens.
    #[serde(rename = "startTimestampMillis", skip_serializing_if = "Option::is_none")]
    pub start_timestamp_millis: Option<i32>,
}

impl O11yPeriodO11yTraceSpanWindow {
    pub fn new() -> O11yPeriodO11yTraceSpanWindow {
        O11yPeriodO11yTraceSpanWindow {
            columns: None,
            end_timestamp_millis: None,
            events: None,
            is_sub_tree: None,
            start_timestamp_millis: None,
        }
    }
}