pub struct Aggregate {
pub table: TableName,
pub op: AggregateOp,
pub key: AggregateKey,
pub value_type: Option<FlussoType>,
pub filters: Option<Vec<Filter>>,
}Expand description
Reduces rows from a related table to a single value — a count, sum, or
extreme. The key connects the tables; filters restrict which rows count.
Fields§
§table: TableName§op: AggregateOp§key: AggregateKey§value_type: Option<FlussoType>The declared result type. Fixed for count (long) and avg (double)
and left None; required for sum / min / max, whose result mirrors
the aggregated column and so must be stated to stay database-free.
filters: Option<Vec<Filter>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Aggregate
impl<'de> Deserialize<'de> for Aggregate
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 Aggregate
impl RefUnwindSafe for Aggregate
impl Send for Aggregate
impl Sync for Aggregate
impl Unpin for Aggregate
impl UnsafeUnpin for Aggregate
impl UnwindSafe for Aggregate
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