pub trait PaginationExt<'db, C, M>where
C: ConnectionTrait,{
// Required method
fn page<'life0, 'async_trait>(
self,
db: &'db C,
pagination: &'life0 Pagination,
) -> Pin<Box<dyn Future<Output = PageResult<M>> + Send + 'async_trait>>
where Self: 'async_trait,
'db: 'async_trait,
'life0: 'async_trait;
}
Expand description
A Trait for any type that can paginate results
Required Methods§
Sourcefn page<'life0, 'async_trait>(
self,
db: &'db C,
pagination: &'life0 Pagination,
) -> Pin<Box<dyn Future<Output = PageResult<M>> + Send + 'async_trait>>where
Self: 'async_trait,
'db: 'async_trait,
'life0: 'async_trait,
fn page<'life0, 'async_trait>(
self,
db: &'db C,
pagination: &'life0 Pagination,
) -> Pin<Box<dyn Future<Output = PageResult<M>> + Send + 'async_trait>>where
Self: 'async_trait,
'db: 'async_trait,
'life0: 'async_trait,
pagination