diesel::query_dsl::methods

Trait 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<ST, F, S, D, W, O, LOf, G, H> DistinctDsl for SelectStatement<F, S, D, W, O, LOf, G, H>
where Self: SelectQuery<SqlType = ST>, SelectStatement<F, S, DistinctClause, W, O, LOf, G, H>: SelectQuery<SqlType = ST>,

Source§

type Output = SelectStatement<F, S, DistinctClause, W, O, LOf, G, H>

Source§

impl<ST, QS, DB, GB> DistinctDsl for BoxedSelectStatement<'_, ST, QS, DB, GB>
where DB: Backend, DistinctClause: QueryFragment<DB>,

Source§

type Output = BoxedSelectStatement<'_, ST, QS, DB, GB>

Source§

impl<T> DistinctDsl for T