Trait backend::db::pagination::Paginate
source · pub trait Paginate: Sized {
// Required method
fn paginate(self, page: Option<i32>) -> PaginatedQuery<Self>;
}
Expand description
A trait intended for enabling pagination in diesel’s query builder.
Required Methods§
sourcefn paginate(self, page: Option<i32>) -> PaginatedQuery<Self>
fn paginate(self, page: Option<i32>) -> PaginatedQuery<Self>
Return a paginated version of a query for a specific page number.
Object Safety§
This trait is not object safe.