use serde::{Deserialize, Serialize};
#[cfg(feature = "graphql")]
#[cfg_attr(feature = "builder", derive(typed_builder::TypedBuilder))]
#[derive(async_graphql::InputObject, Serialize, Clone, Debug)]
#[cfg_attr(feature = "builder", builder(field_defaults(setter(into))))]
pub struct NestedAggregationInput {
pub path: String,
}
#[cfg_attr(test, derive(PartialEq))]
#[cfg_attr(feature = "graphql", derive(async_graphql::SimpleObject))]
#[cfg_attr(feature = "builder", derive(typed_builder::TypedBuilder))]
#[derive(Serialize, Deserialize, Clone, Debug)]
#[cfg_attr(feature = "builder", builder(field_defaults(setter(into))))]
pub struct NestedAggregation {
pub path: String,
}
#[cfg(feature = "graphql")]
impl From<NestedAggregationInput> for NestedAggregation {
#[inline]
fn from(input: NestedAggregationInput) -> Self {
NestedAggregation { path: input.path }
}
}