pub fn query(
    client: Client,
    token: String,
    owner: String,
    repo: String,
) -> Box<Future<Item = Vec<graphql::PullRequest>, Error = Error>> {
    Box::new(
        unfold(PaginationState::First, move |next_page| {
            if next_page.is_done() {
                None
            } else {
                Some(query_single_page(
                    &client,
                    &token,
                    &owner,
                    &repo,
                    next_page.as_after(),
                ))
            }
        })
        .concat2(),
    )
}
/// Obtains the list of open pull requests and associated information from GitHub.
Obtains the list of open pull requests and associated information from GitHub.
Obtains the list of open pull requests and associated information from GitHub .
pub fn query(
    client: Client,
    token: String,
    owner: String,
    repo: String,
) -> Box<Future<Item = Vec<graphql::PullRequest>, Error = Error>> {
    Box::new(
        unfold(PaginationState::First, move |next_page| {
            if next_page.is_done() {
                None
            } else {
                Some(query_single_page(
                    &client,
                    &token,
                    &owner,
                    &repo,
                    next_page.as_after(),
                ))
            }
        })
        .concat2(),
    )
}
pub fn query ( client : Client , token : String , owner : String , repo : String , ) -> Box < Future < Item = Vec < graphql :: PullRequest > , Error = Error > > { Box :: new ( unfold ( PaginationState :: First , move | next_page | { if next_page . is_done ( ) { None } else { Some ( query_single_page ( & client , & token , & owner , & repo , next_page . as_after ( ) , ) ) } } ) . concat2 ( ) , ) }
Obtains the list of open pull requests and associated information from GitHub.
Obtains the list of open pull requests and associated information from GitHub .
client
Client
token
String
owner
String
repo
String
client
Client
token
String
owner
String
repo
String