pub struct AggregationRequest {
pub aggregate_by: HashMap<String, AggregateFunctionInput>,
pub group_by: Vec<String>,
pub filter: Option<FilterExpression>,
pub limit: usize,
}Expand description
Request for aggregation query (Turbopuffer-inspired)
Fields§
§aggregate_by: HashMap<String, AggregateFunctionInput>Named aggregations to compute Example: {“my_count”: [“Count”], “total_score”: [“Sum”, “score”]}
group_by: Vec<String>Fields to group results by (optional) Example: [“category”, “status”]
filter: Option<FilterExpression>Filter to apply before aggregation
limit: usizeMaximum number of groups to return (default: 100)
Trait Implementations§
Source§impl Debug for AggregationRequest
impl Debug for AggregationRequest
Source§impl<'de> Deserialize<'de> for AggregationRequest
impl<'de> Deserialize<'de> for AggregationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AggregationRequest
impl RefUnwindSafe for AggregationRequest
impl Send for AggregationRequest
impl Sync for AggregationRequest
impl Unpin for AggregationRequest
impl UnsafeUnpin for AggregationRequest
impl UnwindSafe for AggregationRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more