manticore_openapi/models/
aggregation.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/// Aggregation : Aggregation Alias
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Aggregation {
17    #[serde(rename = "terms", skip_serializing_if = "Option::is_none")]
18    pub terms: Option<Box<models::AggregationTerms>>,
19    #[serde(rename = "sort", skip_serializing_if = "Option::is_none")]
20    pub sort: Option<Vec<std::collections::HashMap<String, models::AggregationSortInnerValue>>>,
21}
22
23impl Aggregation {
24    /// Aggregation Alias
25    pub fn new() -> Aggregation {
26        Aggregation {
27            terms: None,
28            sort: None,
29        }
30    }
31}
32