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 IndexResult {
    /// Chunks is how many AST-boundary chunks the repo holds after this pass.
    #[serde(rename = "chunks", skip_serializing_if = "Option::is_none")]
    pub chunks: Option<i32>,
    /// Files is how many files the repo holds after this pass.
    #[serde(rename = "files", skip_serializing_if = "Option::is_none")]
    pub files: Option<i32>,
    /// Indexed is how many files were parsed and written on this pass.
    #[serde(rename = "indexed", skip_serializing_if = "Option::is_none")]
    pub indexed: Option<i32>,
    /// Pruned is how many stored files were deleted because prune was set and they were absent from the request.
    #[serde(rename = "pruned", skip_serializing_if = "Option::is_none")]
    pub pruned: Option<i32>,
    /// Repo is the repository that was indexed.
    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
    pub repo: Option<String>,
    /// Semantic reports whether the semantic tier was available for this pass. When false the index is lexical + symbolic only and hybrid search still works.
    #[serde(rename = "semantic", skip_serializing_if = "Option::is_none")]
    pub semantic: Option<bool>,
    /// Skipped is how many files were unchanged by content hash and left alone.
    #[serde(rename = "skipped", skip_serializing_if = "Option::is_none")]
    pub skipped: Option<i32>,
    /// Symbols is how many symbol definitions the repo holds after this pass.
    #[serde(rename = "symbols", skip_serializing_if = "Option::is_none")]
    pub symbols: Option<i32>,
    /// Vectors is how many of those chunks carry an embedding.
    #[serde(rename = "vectors", skip_serializing_if = "Option::is_none")]
    pub vectors: Option<i32>,
}

impl IndexResult {
    pub fn new() -> IndexResult {
        IndexResult {
            chunks: None,
            files: None,
            indexed: None,
            pruned: None,
            repo: None,
            semantic: None,
            skipped: None,
            symbols: None,
            vectors: None,
        }
    }
}