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>(column: EntityColumn<E>) -> AggregateProjectionwhere
E: Entity,
pub fn group_key_as( expr: impl Into<Expr>, alias: &'static str, ) -> AggregateProjection
pub const fn expr_as( expr: AggregateExpr, alias: &'static str, ) -> AggregateProjection
pub fn count_as(alias: &'static str) -> AggregateProjection
pub fn sum_as(expr: impl Into<Expr>, alias: &'static str) -> AggregateProjection
pub fn avg_as(expr: impl Into<Expr>, alias: &'static str) -> AggregateProjection
pub fn min_as(expr: impl Into<Expr>, alias: &'static str) -> AggregateProjection
pub fn max_as(expr: impl Into<Expr>, alias: &'static str) -> AggregateProjection
Trait Implementations§
Source§impl AggregateProjections for AggregateProjection
impl AggregateProjections for AggregateProjection
fn into_aggregate_projections(self) -> Vec<AggregateProjection>
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<E: Entity> From<AliasedEntityColumn<E>> for AggregateProjection
impl<E: Entity> From<AliasedEntityColumn<E>> for AggregateProjection
Source§fn from(value: AliasedEntityColumn<E>) -> Self
fn from(value: AliasedEntityColumn<E>) -> Self
Converts to this type from the input type.
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