Trait PaginationExt

Source
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§

Source

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

Implementations on Foreign Types§

Source§

impl<'db, C, M, E> PaginationExt<'db, C, M> for Select<E>
where C: ConnectionTrait, E: EntityTrait<Model = M>, M: FromQueryResult + Sized + Send + Sync + 'db,

Source§

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,

Source§

impl<'db, C, S> PaginationExt<'db, C, <S as SelectorTrait>::Item> for Selector<S>
where C: ConnectionTrait, S: SelectorTrait + Send + Sync + 'db,

Source§

fn page<'life0, 'async_trait>( self, db: &'db C, pagination: &'life0 Pagination, ) -> Pin<Box<dyn Future<Output = PageResult<S::Item>> + Send + 'async_trait>>
where Self: 'async_trait, 'db: 'async_trait, 'life0: 'async_trait,

Implementors§