diesel::query_dsl::methods

Trait FindDsl

Source
pub trait FindDsl<PK> {
    type Output;

    // Required method
    fn find(self, id: PK) -> Self::Output;
}
Expand description

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

Required Associated Types§

Source

type Output

The type returned by .find.

Required Methods§

Source

fn find(self, id: PK) -> Self::Output

See the trait documentation.

Implementors§

Source§

impl<S, PK> FindDsl<PK> for Alias<S>
where S: AliasSource, S::Target: Table, <S::Target as Table>::PrimaryKey: FieldAliasMapper<S>, <<S::Target as Table>::PrimaryKey as FieldAliasMapper<S>>::Out: EqAll<PK>, Self: FilterDsl<<<<S::Target as Table>::PrimaryKey as FieldAliasMapper<S>>::Out as EqAll<PK>>::Output>,

Source§

type Output = <Alias<S> as FilterDsl<<<<<S as AliasSource>::Target as Table>::PrimaryKey as FieldAliasMapper<S>>::Out as EqAll<PK>>::Output>>::Output

Source§

impl<T, PK> FindDsl<PK> for T
where T: Table + FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>, T::PrimaryKey: EqAll<PK>,

Source§

type Output = <T as FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>>::Output