[][src]Trait diesel::query_dsl::methods::DistinctOnDsl

pub trait DistinctOnDsl<Selection> {
    type Output;
    fn distinct_on(self, selection: Selection) -> Self::Output;

The distinct_on 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_on from generic code.

Associated Types

type Output

The type returned by .distinct_on

Loading content...

Required methods

fn distinct_on(self, selection: Selection) -> Self::Output

See the trait documentation

Loading content...


impl<T, Selection> DistinctOnDsl<Selection> for T where
    Selection: SelectableExpression<T>,
    T: Table,
    T::Query: DistinctOnDsl<Selection>, 

type Output = <T::Query as DistinctOnDsl<Selection>>::Output

Loading content...