pub trait FetchablePlan<C: QueryContext, Row> {
// Required methods
fn fetch_one<'e, 'life0, 'async_trait, E>(
&'life0 self,
exec: E,
) -> Pin<Box<dyn Future<Output = Result<Row, Error>> + Send + 'async_trait>>
where E: Executor<'e, Database = Postgres> + 'async_trait,
Self: 'async_trait,
'e: 'async_trait,
'life0: 'async_trait;
fn fetch_all<'e, 'life0, 'async_trait, E>(
&'life0 self,
exec: E,
) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, Error>> + Send + 'async_trait>>
where E: Executor<'e, Database = Postgres> + 'async_trait,
Self: 'async_trait,
'e: 'async_trait,
'life0: 'async_trait;
fn fetch_optional<'e, 'life0, 'async_trait, E>(
&'life0 self,
exec: E,
) -> Pin<Box<dyn Future<Output = Result<Option<Row>, Error>> + Send + 'async_trait>>
where E: Executor<'e, Database = Postgres> + 'async_trait,
Self: 'async_trait,
'e: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn fetch_one<'e, 'life0, 'async_trait, E>( &'life0 self, exec: E, ) -> Pin<Box<dyn Future<Output = Result<Row, Error>> + Send + 'async_trait>>
fn fetch_all<'e, 'life0, 'async_trait, E>( &'life0 self, exec: E, ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, Error>> + Send + 'async_trait>>
fn fetch_optional<'e, 'life0, 'async_trait, E>( &'life0 self, exec: E, ) -> Pin<Box<dyn Future<Output = Result<Option<Row>, Error>> + Send + 'async_trait>>
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.