Skip to main content

GroupByIdentity

Trait GroupByIdentity 

Source
pub trait GroupByIdentity {
    type Identity;
}
Expand description

Extracts the “base column” identity from an expression for GROUP BY matching.

AliasedExpr<Col> → Col, bare column → Self.

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E, Name> GroupByIdentity for NamedExpr<E, Name>
where E: GroupByIdentity,

Source§

impl<E: GroupByIdentity> GroupByIdentity for AliasedExpr<E>

Source§

impl<Name, Output> GroupByIdentity for DerivedField<Name, Output>
where Name: Tag, Output: ProjectionOutput,

Source§

type Identity = DerivedField<Name, Output>

Source§

impl<V: SQLParam, T, N, A> GroupByIdentity for SQLExpr<'_, V, T, N, A>

Source§

type Identity = SQLExpr<'_, V, T, N, A>