/*
* 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};
/// AggCompositeSource : Object containing terms used for composite aggregation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AggCompositeSource {
#[serde(rename = "terms")]
pub terms: Box<models::AggCompositeTerm>,
}
impl AggCompositeSource {
/// Object containing terms used for composite aggregation.
pub fn new(terms: models::AggCompositeTerm) -> AggCompositeSource {
AggCompositeSource {
terms: Box::new(terms),
}
}
}