manticore_openapi/models/
aggregation.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 pub fn new() -> Aggregation {
26 Aggregation {
27 terms: None,
28 sort: None,
29 }
30 }
31}
32