Skip to main content

PaginatedRepository

Trait PaginatedRepository 

Source
pub trait PaginatedRepository: Repository {
    // Required method
    fn find_paginated<'life0, 'async_trait>(
        &'life0 self,
        limit: i64,
        offset: i64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Entity>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn find_paginated<'life0, 'async_trait>( &'life0 self, limit: i64, offset: i64, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Entity>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§