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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.