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§

source

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.

Implementors§

source§

impl<T> Paginate for T