[][src]Trait adventure::PagedRequest

pub trait PagedRequest<C>: Request<C> {
    fn advance(&mut self, response: &Self::Ok) -> bool;

    fn paginate(self, client: C) -> Paginator<C, Self>
    where
        Self: Sized
, { ... } }

A request able to send subsequent requests to enumerate the entire result.

Required methods

fn advance(&mut self, response: &Self::Ok) -> bool

Modify itself to retrive the next response, of return false if the given response was the last one.

Loading content...

Provided methods

fn paginate(self, client: C) -> Paginator<C, Self> where
    Self: Sized

Loading content...

Implementations on Foreign Types

impl<R, C> PagedRequest<C> for Box<R> where
    R: PagedRequest<C>, 
[src]

fn paginate(self, client: C) -> Paginator<C, Self> where
    Self: Sized
[src]

impl<P, C> PagedRequest<C> for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: PagedRequest<C> + Unpin
[src]

fn paginate(self, client: C) -> Paginator<C, Self> where
    Self: Sized
[src]

Loading content...

Implementors

Loading content...