pub struct AggregateProjection {
pub expr: AggregateExpr,
pub alias: &'static str,
}Fields§
§expr: AggregateExpr§alias: &'static strImplementations§
Source§impl AggregateProjection
impl AggregateProjection
pub fn group_key<E: Entity>(column: EntityColumn<E>) -> Self
pub fn group_key_as(expr: impl Into<Expr>, alias: &'static str) -> Self
pub const fn expr_as(expr: AggregateExpr, alias: &'static str) -> Self
pub fn count_as(alias: &'static str) -> Self
pub fn sum_as(expr: impl Into<Expr>, alias: &'static str) -> Self
pub fn avg_as(expr: impl Into<Expr>, alias: &'static str) -> Self
pub fn min_as(expr: impl Into<Expr>, alias: &'static str) -> Self
pub fn max_as(expr: impl Into<Expr>, alias: &'static str) -> Self
Trait Implementations§
Source§impl Clone for AggregateProjection
impl Clone for AggregateProjection
Source§fn clone(&self) -> AggregateProjection
fn clone(&self) -> AggregateProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregateProjection
impl Debug for AggregateProjection
Source§impl PartialEq for AggregateProjection
impl PartialEq for AggregateProjection
Source§fn eq(&self, other: &AggregateProjection) -> bool
fn eq(&self, other: &AggregateProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregateProjection
Auto Trait Implementations§
impl Freeze for AggregateProjection
impl RefUnwindSafe for AggregateProjection
impl Send for AggregateProjection
impl Sync for AggregateProjection
impl Unpin for AggregateProjection
impl UnsafeUnpin for AggregateProjection
impl UnwindSafe for AggregateProjection
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