[][src]Struct octocrab::pulls::ListPullRequestsBuilder

pub struct ListPullRequestsBuilder<'octo, 'b> { /* fields omitted */ }

A builder pattern struct for listing pull requests.

created by PullRequestHandler::list

Implementations

impl<'octo, 'b> ListPullRequestsBuilder<'octo, 'b>[src]

pub fn state(self, state: State) -> Self[src]

Filter pull requests by state.

pub fn head(self, head: impl Into<String>) -> Self[src]

Filter pull requests by head user or head organization and branch name in the format of user:ref-name or organization:ref-name. For example: github:new-script-format or octocrab:test-branch.

pub fn base(self, base: impl Into<String>) -> Self[src]

Filter pulls by base branch name. Example: gh-pages.

pub fn sort(self, sort: impl Into<Sort>) -> Self[src]

What to sort results by. Can be either created, updated, popularity (comment count) or long-running (age, filtering by pulls updated in the last month).

pub fn direction(self, direction: impl Into<Direction>) -> Self[src]

The direction of the sort. Can be either ascending or descending. Default: descending when sort is created or sort is not specified, otherwise ascending sort.

pub fn per_page(self, per_page: impl Into<u8>) -> Self[src]

Results per page (max 100).

pub fn page(self, page: impl Into<u32>) -> Self[src]

Page number of the results to fetch.

pub async fn send(self) -> Result<Page<PullRequest>>[src]

Sends the actual request.

Trait Implementations

impl<'octo, 'b> Serialize for ListPullRequestsBuilder<'octo, 'b>[src]

Auto Trait Implementations

impl<'octo, 'b> !RefUnwindSafe for ListPullRequestsBuilder<'octo, 'b>

impl<'octo, 'b> Send for ListPullRequestsBuilder<'octo, 'b>

impl<'octo, 'b> Sync for ListPullRequestsBuilder<'octo, 'b>

impl<'octo, 'b> Unpin for ListPullRequestsBuilder<'octo, 'b> where
    'octo: 'b, 

impl<'octo, 'b> !UnwindSafe for ListPullRequestsBuilder<'octo, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.