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§


type Output

The type returned by .distinct

Required Methods§


fn distinct(self) -> Distinct<Self>

See the trait documentation.



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>> as DistinctDsl>::Output