WithPagination

Trait WithPagination 

Source
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§

Source

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.

Implementors§

Source§

impl<T, B> WithPagination for T
where T: Responder<Body = B>, B: MessageBody + 'static,