pub trait DistinctDsl {
    type Output;

    // Required method
    fn distinct(self) -> Distinct<Self>;
}
Expand description

The distinct method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call distinct from generic code.

Required Associated Types§

source

type Output

The type returned by .distinct

Required Methods§

source

fn distinct(self) -> Distinct<Self>

See the trait documentation.

Implementors§

source§

impl<T> DistinctDsl for Twhere T: Table + AsQuery<Query = SelectStatement<FromClause<T>>>, T::DefaultSelection: Expression<SqlType = T::SqlType> + ValidGrouping<()>, T::SqlType: TypedExpressionType,

§

type Output = <SelectStatement<FromClause<T>, DefaultSelectClause<FromClause<T>>, NoDistinctClause, NoWhereClause, NoOrderClause, LimitOffsetClause<NoLimitClause, NoOffsetClause>, NoGroupByClause, NoHavingClause, NoLockingClause> as DistinctDsl>::Output