/*
* 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 TreeNode {
/// Children is this node's direct children, each a whole node, so the array nests to the depth of the flow. A leaf carries null rather than an empty array. The subtree is materialised in full, up to 10000 nodes, out of one indexed read of the root; nothing is walked node by node.
#[serde(rename = "children", skip_serializing_if = "Option::is_none")]
pub children: Option<Vec<models::TreeNode>>,
/// Session is this node's own session, carrying its event count and its direct fan-out. It is the same shape the list and detail reads answer with, minus the last-event preview, which the tree does not fetch.
#[serde(rename = "session", skip_serializing_if = "Option::is_none")]
pub session: Option<Box<models::SessionView>>,
}
impl TreeNode {
pub fn new() -> TreeNode {
TreeNode {
children: None,
session: None,
}
}
}