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 IndexStats {
    /// DatabaseSize is the org's total document count across its indexes. It is a count, not bytes: the store is shared by every tenant, so a byte figure would either be the whole file (another tenant's size) or a fiction.
    #[serde(rename = "databaseSize", skip_serializing_if = "Option::is_none")]
    pub database_size: Option<i32>,
    /// Indexes maps each index uid to its own count.
    #[serde(rename = "indexes", skip_serializing_if = "Option::is_none")]
    pub indexes: Option<std::collections::HashMap<String, models::IndexCount>>,
}

impl IndexStats {
    pub fn new() -> IndexStats {
        IndexStats {
            database_size: None,
            indexes: None,
        }
    }
}