Skip to main content

hanzo_client/models/
index_count.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IndexCount {
16    /// IsIndexing is always false: writes are applied before their response, so there is never a background pass a caller could be waiting on.
17    #[serde(rename = "isIndexing", skip_serializing_if = "Option::is_none")]
18    pub is_indexing: Option<bool>,
19    /// NumberOfDocuments is how many documents this org holds in that index.
20    #[serde(rename = "numberOfDocuments", skip_serializing_if = "Option::is_none")]
21    pub number_of_documents: Option<i32>,
22}
23
24impl IndexCount {
25    pub fn new() -> IndexCount {
26        IndexCount {
27            is_indexing: None,
28            number_of_documents: None,
29        }
30    }
31}
32