diesel::query_dsl::methods

Trait SingleValueDsl

Source
pub trait SingleValueDsl {
    type Output;

    // Required method
    fn single_value(self) -> Self::Output;
}
Expand description

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.

Required Associated Types§

Source

type Output

The type returned by .single_value.

Required Methods§

Source

fn single_value(self) -> Self::Output

See the trait documentation.

Implementors§

Source§

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

Source§

type Output = Grouped<Subselect<<T as LimitDsl>::Output, <ST as IntoNullable>::Nullable>>