lance_namespace_reqwest_client/models/fragment_summary.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 FragmentSummary {
16 #[serde(rename = "min")]
17 pub min: i64,
18 #[serde(rename = "max")]
19 pub max: i64,
20 #[serde(rename = "mean")]
21 pub mean: i64,
22 #[serde(rename = "p25")]
23 pub p25: i64,
24 #[serde(rename = "p50")]
25 pub p50: i64,
26 #[serde(rename = "p75")]
27 pub p75: i64,
28 #[serde(rename = "p99")]
29 pub p99: i64,
30}
31
32impl FragmentSummary {
33 pub fn new(min: i64, max: i64, mean: i64, p25: i64, p50: i64, p75: i64, p99: i64) -> FragmentSummary {
34 FragmentSummary {
35 min,
36 max,
37 mean,
38 p25,
39 p50,
40 p75,
41 p99,
42 }
43 }
44}
45