diesel::query_dsl::methods

Trait DistinctOnDsl

Source
pub trait DistinctOnDsl<Selection> {
    type Output;

    // Required method
    fn distinct_on(self, selection: Selection) -> Self::Output;
}
Expand description

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.

Required Associated Types§

Source

type Output

The type returned by .distinct_on

Required Methods§

Source

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

See the trait documentation

Implementors§

Source§

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

Source§

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