/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use crate::common;
use serde::{Deserialize, Serialize};
/// BucketsQueryContainer
/// Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for
/// the different buckets, the result is a dictionary.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(untagged)]
pub enum BucketsQueryContainer {
ArrayValue(Vec<serde_json::Value>),
KeyedValue(serde_json::Value),
}