pub struct Aggregate {
pub function: AggregateFunction,
pub field: String,
pub alias: String,
}Fields§
§function: AggregateFunction§field: String§alias: StringImplementations§
Source§impl Aggregate
impl Aggregate
pub fn new( function: AggregateFunction, field: impl Into<String>, alias: impl Into<String>, ) -> Self
pub fn count(alias: impl Into<String>) -> Self
pub fn count_field(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn sum(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn avg(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn min(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn max(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn stddev(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn stddev_pop(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn var_samp(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn var_pop(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn bit_and(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn bit_or(field: impl Into<String>, alias: impl Into<String>) -> Self
pub fn bit_xor(field: impl Into<String>, alias: impl Into<String>) -> Self
Trait Implementations§
impl Eq for Aggregate
impl StructuralPartialEq for Aggregate
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