manticore_openapi/models/
aggregation_terms.rs

1/*
2 * Manticore Search Client
3 *
4 * Сlient for Manticore Search. 
5 *
6 * The version of the OpenAPI document: 3.3.1
7 * Contact: info@manticoresearch.com
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 AggregationTerms {
16    /// Attribute Name to Aggregate
17    #[serde(rename = "field", skip_serializing_if = "Option::is_none")]
18    pub field: Option<String>,
19    /// Maximum Number of Buckets in the Result
20    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
21    pub size: Option<i32>,
22}
23
24impl AggregationTerms {
25    pub fn new() -> AggregationTerms {
26        AggregationTerms {
27            field: None,
28            size: None,
29        }
30    }
31}
32