1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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,
}
}
}