Trait diesel::query_dsl::methods::DistinctDsl

source ·
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 T
where T: Table + AsQuery<Query = SelectStatement<FromClause<T>>>, T::DefaultSelection: Expression<SqlType = T::SqlType> + ValidGrouping<()>, T::SqlType: TypedExpressionType,

source§

type Output = <SelectStatement<FromClause<T>> as DistinctDsl>::Output