/*
* 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 TreeEntry {
/// Lang is the language the indexer parsed the file as (\"go\", \"python\", …), or empty when it recognised none — in which case Symbols is 0 because nothing was extracted, not because the file declares nothing.
#[serde(rename = "lang", skip_serializing_if = "Option::is_none")]
pub lang: Option<String>,
/// Path is the file, relative to the repo root. The list is ordered by it, so a reader can see module layout without sorting.
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// Symbols is how many top-level declarations the file defines. A file with none is still listed: the file set is the authority here and the counts decorate it.
#[serde(rename = "symbols", skip_serializing_if = "Option::is_none")]
pub symbols: Option<i32>,
}
impl TreeEntry {
pub fn new() -> TreeEntry {
TreeEntry {
lang: None,
path: None,
symbols: None,
}
}
}