manticoresearch 2.0.0

Сlient for Manticore Search.
Documentation
/*
 * Manticore Search Client
 *
 * Сlient for Manticore Search. 
 *
 * The version of the OpenAPI document: 5.0.0
 * Contact: info@manticoresearch.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Aggregation {
    #[serde(rename = "terms", skip_serializing_if = "Option::is_none")]
    pub terms: Option<Box<models::AggTerms>>,
    #[serde(rename = "sort", skip_serializing_if = "Option::is_none")]
    pub sort: Option<Vec<serde_json::Value>>,
    #[serde(rename = "composite", skip_serializing_if = "Option::is_none")]
    pub composite: Option<Box<models::AggComposite>>,
    #[serde(rename = "histogram", skip_serializing_if = "Option::is_none")]
    pub histogram: Option<Box<models::AggHistogram>>,
}

impl Aggregation {
    pub fn new() -> Aggregation {
        Aggregation {
            terms: None,
            sort: None,
            composite: None,
            histogram: None,
        }
    }
}