pub trait WithPagination: Sized {
// Required method
fn with_pagination<P>(self, pagination: P) -> PagedApiResponse<Self, P>;
}Expand description
A trait for adding pagination to a response.
Required Methods§
Sourcefn with_pagination<P>(self, pagination: P) -> PagedApiResponse<Self, P>
fn with_pagination<P>(self, pagination: P) -> PagedApiResponse<Self, P>
Build the paged API response based on the original API response and the paging information.
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.