Trait diesel::query_dsl::methods::DistinctOnDsl [−][src]
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
Required Methods
fn distinct_on(self, selection: Selection) -> Self::Output
See the trait documentation
Implementors
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;