Struct ghrs::pulls::PullsHandler[][src]

pub struct PullsHandler<'a> { /* fields omitted */ }

A client for the Pull Request API.

See https://docs.github.com/en/rest/reference/pulls.

Implementations

impl<'a> PullsHandler<'a>[src]

pub fn new(
    client: &'a Client,
    owner: impl Into<String>,
    repo: impl Into<String>
) -> PullsHandler<'_>
[src]

pub fn list(&self) -> ListPullRequestsBuilder<'_>[src]

List pull requests.

See https://docs.github.com/en/rest/reference/pulls#list-pull-requests.

let client = ghrs::Client::new();
let pull_requests = client.pulls("owner", "repo").list().per_page(100).send();

pub fn get(&self, pull_number: u64) -> GetPullRequestBuilder<'_>[src]

Get a pull request.

See https://docs.github.com/en/rest/reference/pulls#get-a-pull-request.

let client = ghrs::Client::new();
let pull_request = client.pulls("owner", "repo").get(1234).send();

Auto Trait Implementations

impl<'a> RefUnwindSafe for PullsHandler<'a>[src]

impl<'a> Send for PullsHandler<'a>[src]

impl<'a> Sync for PullsHandler<'a>[src]

impl<'a> Unpin for PullsHandler<'a>[src]

impl<'a> UnwindSafe for PullsHandler<'a>[src]

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, 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.