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

pub trait SingleValueDsl {
    type Output;
    fn single_value(self) -> Self::Output;

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

Associated Types

type Output

The type returned by .single_value.

Loading content...

Required methods

fn single_value(self) -> Self::Output

See the trait documentation.

Loading content...


impl<T, ST> SingleValueDsl for T where
    Self: SelectQuery<SqlType = ST> + LimitDsl,
    ST: IntoNullable,
    ST::Nullable: SingleValue

type Output = Grouped<Subselect<Limit<Self>, ST::Nullable>>

Loading content...