diesel::query_dsl::methods

Trait LoadQuery

Source
pub trait LoadQuery<Conn, U>: RunQueryDsl<Conn> {
    // Required method
    fn internal_load(self, conn: &Conn) -> QueryResult<Vec<U>>;
}
Expand description

The load method

This trait should not be relied on directly by most apps. Its behavior is provided by RunQueryDsl. However, you may need a where clause on this trait to call load from generic code.

Required Methods§

Source

fn internal_load(self, conn: &Conn) -> QueryResult<Vec<U>>

Load this query

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Conn, T> LoadQuery<Conn, T> for SqlQuery
where Conn: Connection, T: QueryableByName<Conn::Backend>,

Source§

impl<Conn, T, U> LoadQuery<Conn, U> for T
where Conn: Connection, Conn::Backend: HasSqlType<T::SqlType>, T: AsQuery + RunQueryDsl<Conn>, T::Query: QueryFragment<Conn::Backend> + QueryId, U: Queryable<T::SqlType, Conn::Backend>,