lance_namespace_reqwest_client/models/
get_table_stats_response.rs

1/*
2 * Lance Namespace Specification
3 *
4 * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts:  The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details.  The `servers`, `security`, `paths`, `components/parameters` sections are for the  Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. 
5 *
6 * The version of the OpenAPI document: 1.0.0
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 GetTableStatsResponse {
16    /// The total number of bytes in the table
17    #[serde(rename = "total_bytes")]
18    pub total_bytes: i64,
19    /// The number of rows in the table
20    #[serde(rename = "num_rows")]
21    pub num_rows: i64,
22    /// The number of indices in the table
23    #[serde(rename = "num_indices")]
24    pub num_indices: i64,
25    /// Statistics on table fragments
26    #[serde(rename = "fragment_stats")]
27    pub fragment_stats: Box<models::FragmentStats>,
28}
29
30impl GetTableStatsResponse {
31    pub fn new(total_bytes: i64, num_rows: i64, num_indices: i64, fragment_stats: models::FragmentStats) -> GetTableStatsResponse {
32        GetTableStatsResponse {
33            total_bytes,
34            num_rows,
35            num_indices,
36            fragment_stats: Box::new(fragment_stats),
37        }
38    }
39}
40